|
|
From
AWT to Swing
The Swing user interface model is a
development of the AWT model. It has more classes and supports a greater range
of user interface elements. The event handling process is similar in Swing and
AWT.
The Swing package includes new elements
such as:
splittable windows, with a different
component in each half
tree-style list boxes (as seen in
Windows 'Explorer')
'tooltip' pop-up windows
progress bars
tabbed dialog boxes
Using these components is not fundamentally
different from using AWT classes; you will still have to create objects of the
appropriate classes, use the layout manager to organise them, and define
listeners to handle events.
|
|