Abstract Window Toolkit

Why Trust Techopedia

What Does Abstract Window Toolkit Mean?

Abstract Window Toolkit (AWT) is a collection of graphical user interface (GUI) components (widgets) and other related services required for GUI programming in Java. It is Java’s original platform-independent windowing, graphics and user-interface widget tool kit. AWT is now part of Java Foundation Classes (JFC) and serves as the standard application programming interface (API) for GUI programming in Java.

Advertisements

From J2SE1.2 forward, the AWT widgets were largely superseded by the Swing toolkit. Swing functionality relies on AWT for core interfacing to the native windowing system. However, the programmer now has the choice between the look and feel of the native system and the cross-platform look and feel of Java. Swing is preferred by most Java programmers who still adhere to the write once, run anywhere (WORA) principle at the core of Java’s philosophy.

Techopedia Explains Abstract Window Toolkit

In 1995, when Sun Microsystems introduced Java as a platform-independent programming language, AWT was intended to provide a thin layer of abstraction over the underlying native user interface. In essence, the same Java program, when run on a Windows PC, would have the look and feel of a native Windows application and the look and feel of a native Mac application when run on a Mac.

AWT includes a set of widgets, which provide the subset of functionality common to all native platforms. AWT also features a robust event-handling model, graphics and imaging tools (including shape, color and font classes), layout managers for flexible window layouts, and data transfer classes for cut-and-paste through the native platform clipboard.

Advertisements

Related Terms

Margaret Rouse
Technology expert
Margaret Rouse
Technology expert

Margaret is an award-winning writer and educator known for her ability to explain complex technical topics to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles in the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret’s idea of ​​a fun day is to help IT and business professionals to learn to speak each other’s highly specialized languages.