13.24. Summary

The AWT offers eight major types of windows that the developer can use for user interfaces: Canvas, Panel, Applet, ScrollPane, Frame, Dialog, FileDialog, and Window. This chapter explains the differences among these and described the basics of their use. The major GUI controls available in Java are Button, Checkbox (which can create regular check boxes or radio buttons), Choice, List, TextField, TextArea, Label, Scrollbar (used for scrolling and for selecting values), and PopupMenu. To use built-in or custom GUI components, you need to know two things: how to create them with the look you want and how to process the events that occur when the user interacts with them. In most cases, the main look is specified in the interface element's ...

Get Core Web Programming, Second Edition 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.