您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Extend Index

Extend Page # 8

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.

Back to top

basicline.gif (170 bytes)