«^»
9. The Swing API

The course looks at the Swing API in two takes. In the first take, the students are introduced to the following ideas:

In order to use the Swing API, a programmer is required to be familiar with the idea of declaring a class that implements an interface. In this course, the lectures on the Swing API appears immediately after the lectures that introduce interfaces and classes.

In later lectures, the classes JMenuBox, JMenu and JMenuItem are introduced. These three classes are needed to build a menu system. Because JMenuItems are another form of button, responding to a click of a menu item can be handled in a similar way to that for buttons (which were discussed in earlier lectures).