Abstract Window Toolkit

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

Latest DevOps Terms

Related Reading

Margaret Rouse

Margaret Rouse is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical, business audience. Over the past twenty years her explanations have appeared on TechTarget websites and she's been cited as an authority in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine and Discovery Magazine.Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages. If you have a suggestion for a new definition or how to improve a technical explanation, please email Margaret or contact her…