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
Editor

Margaret jest nagradzaną technical writerką, nauczycielką i wykładowczynią. Jest znana z tego, że potrafi w prostych słowach pzybliżyć złożone pojęcia techniczne słuchaczom ze świata biznesu. Od dwudziestu lat jej definicje pojęć z dziedziny IT są publikowane przez Que w encyklopedii terminów technologicznych, a także cytowane w artykułach ukazujących się w New York Times, w magazynie Time, USA Today, ZDNet, a także w magazynach PC i Discovery. Margaret dołączyła do zespołu Techopedii w roku 2011. Margaret lubi pomagać znaleźć wspólny język specjalistom ze świata biznesu i IT. W swojej pracy, jak sama mówi, buduje mosty między tymi dwiema domenami, w ten…