Basic:
Most C ++ GUI class libraries are platform specific, not only due to different hardware capabilities, but the subtle differences between the โlook and feelโ of the various Windowing operating systems. The Java Abstract Window Toolkit provides a cross-platform library that aims to monitor the external concepts of various OS platforms.
Toolkit ------------------------------------------------ AWT --------|--------- Button List JVM ------|-------------|-------------------------------------------------- Button Peer List Peer Native GUI (Windows, Mac, X)
Additional Information on Java GUI Event Programming
AWT provides two levels of API:
A common interface between Java and the proprietary system used to manage windows, events, and layouts. This API is at the core of Java GUI programming and is also used by Swing and Java 2D. He contains:
- The interface between the native windows system and the Java application;
- The core of the GUI event subsystem;
- Several layout managers;
- An interface for inputting devices such as a mouse and keyboard;
and
- A java.awt.datatransfer package for use with the clipboard and drag and drop.
A basic set of GUI widgets such as buttons, text boxes, and menus.
It also provides the AWT Native Interface , which allows you to convert libraries compiled into native code directly onto the AWT Canvas surface.
AWT also provides access to higher-level applications, for example:
Access to the system tray on supporting systems; and Ability to run some desktop applications, such as web browsers and email clients from a Java application.
To get the source code for the Native OpenJDK AWT classes, use the link below
jdk6 / jdk6-gate / jdk / src / windows / native / sun /
jdk6 / jdk6-gate / jdk / src / windows / native / sun / windows / (Windows-AWT-Native classes).
OpenJDK (GPL)
- Sun announced in 2006 that Java would become open source.
- The full source code for the Java class library under the GPL was released on May 8, 2007.
- On October 11, 2010, IBM, by far the largest contributor to the Apache Harmony project, decided to join Oracle on the OpenJDK project, effectively shifting its efforts from Harmony to OpenJDK.
- On January 11, 2011, the Mac OS X Port project was created in OpenJDK, and Apple made its first public contribution to the project. Apple's initial contribution based on the BSJ OpenJDK port ( OpenJDK โข 6 Source Release ).
Link:
[ OpenJDK repositories .]
Open jdk6 / jdk6-gate / jdk / src / share / classes / java / awt / (AWT source code example)
OpenJDK core project based on JDK 7
You can find OpenJDK features here
Caciocavallo , a Project that provides an OpenJDK-based Java API to facilitate AWT implementation on new systems. The project successfully implemented AWT widgets using Java2D.
[OpenJDK mailing list .]
Read the AWT Documentation for a clear understanding of its implementations.
Fallow awt-dev Mailing Lists to attend.
Chandra sekhar
source share