This discussion marks the beginning of the second phase of our consideration of Java. In the first, the discussion covered the Java components needed to create a very simple applet that included a user interface and an action the user could perform. In this phase, we will revisit many of the same topics covered in the first, but go into more depth. The goal is to develop the skills needed to create a more typical user interface and to process the events it generates. Topics that will be discussed include further consideration of Java events and actions, layout managers, and additional user interface components.The discussion begins with further consideration of Java events. Whereas the earlier discussion emphasized general aspects, such as the propagation of events through the class and containing object hierarchies, the emphasis here is on the details involved in processing events from particular user interface components, such as menus and scrollbars.
Topics
- Additional discussion of Java events and actions.
- Java actions
- handling scrollbar events
- Event propagation, continued
References
Useful references include:
- Sun's Java Development Kit (JDK)
- The API
- The API Class Hierarchy
- Source Code for JDK Packages
Assignment for Next Class
- Read Java Layout Managers class tutorial.