Components and Containers
Before you begin your exploration of Swing objects and classes, I need to first explain how I am going to describe these things. For the most part, the objects that you use on your graphical applications are called components. In some places, they may be referred to as widgets. I’ll try to be consistent and stick with components in hope of minimizing confusion.
In this chapter, you get your first exposure to the Swing hierarchy and see how a Jython application can use the Swing classes to create a Graphical User Interface (GUI). You’ll begin with top-level container types and see what makes them special. Then ...