23Introduction to Swing

23.1 WHAT IS SWING?

AWT, layout managers and event handling have been covered in earlier chapters. This chapter deals with refind form of AWT components and other aspects in a form of Swing package. Swing is a set of classes that provides more powerful and flexible components than are possible with the AWT. A number of features of Swing component are given below:

1.   Lightweight: Not built on native window-system windows.

2.   Much bigger set of built-in controls: Trees, image, buttons, tabbed panes, sliders, toolbars, color choosers, tables, text areas to display HTML or RTF, etc.

3.   Much more customizable: Can change look and feel at runtime, or design own look and feel.

4.   Many miscellaneous new features: Double-buffering ...

Get Java Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.