CHAPTER 22

INTRODUCTION TO SWING

Earlier we have studied components from AWT package. These components depend on the methods and facilities of similar components from the base platform. That is the reason they are termed as “heavyweight components”. This design has certain advantages. As expected, there are disadvantages too. Now Java provides a set of components termed as “lightweight” components. They are also called all-Java components. These components are coded in Java language. They do not depend on platform facilities. These components are defined in a package Javax.swing. These components practically work the same way on all platforms. The package swing is fairly big and will be a subject of a full text. In this chapter, we will introduce ...

Get Programming with Java 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.