Fundamentals of the AWT


The Abstract Window Toolkit can be used by Java applications and applets. But I recommend that:

Applets:

If you do use menus/frames(i.e for a pop-up menu), then you must live with the "untrusted window" message. More importantly, Frames/Dialogs can to ill-behaving and not close if you do not handle the Event.WINDOW_DESTROY message.

But.. we will start with applications first of all, because of fewer restriction. Although I will try not to provide information too specific to stand-alone applications. The first few sections are not particularly useful for applet writers, but later sections rely on concepts learnt early on.

Structure of the AWT

The current release of the AWT has this type of of structure:

Since the JDK 1.0 has been released. Applets and Application tend to have similar functionality. Yet there are times when an applet can not be a stand-alone app, but that case will soon disappear as shown between Beta 1 to the official "One-point Oh" release. Applets and Applications may one day have the same functionality.

Bugs in the AWT(JDK 1.0)



Steps for stand-alone applications using the AWT:

Since this is an AWT Tutorial we will focus on the interface part first and come back to show how to integrate threading and networking into your applications(or applets).
[Next] [Prev] [Home]
Nelson Yu
nelson@cs.ualberta.ca
Last modified: Feb 21 1996