Java AWT Components
Java's Abstract Windowing Toolkit provides many of the user interface objects we find in the Windows environment. These are called "Components" of the Java AWT. The applet below contains most of the components we will use to create a graphical user interface (GUI) for our applets. It simply initializes and creates the components but does not handle any of the events they trigger. Click on the hyperlink to the right of the component in order to see an example of the code that includes the event handlers.
1. Labels place text on the screen
2. Buttons are used very often to trigger actions and other events.
3. Check Boxes allow choices
4. Radio Buttons are a special case of check boxes.
5. List Boxes are ideal for interacting with arrays of Strings
6. Choice Boxes are similar to list Boxes but conserve Space.
7. Text Areas allow the user to enter data.
8. Scroll bars are ideal for providing access to an integer index.
Using Swing Components
1. Buttons and Labels
2. Checkboxes and Radio Buttons
3. Lists and Combo Boxes
4. Borders
5. Menus
6. The PopupMenu Class
7. The JScrollPane Class
8. The JSplitPane Class
9. The JTabbedPane Class
10. Scrollbars and Sliders
11. Dialogs