Chapter 14: Widget Wizardry
Chapter 14 Examples
These pages have the complete source code and examples
from Chapter 14, Widget Wizardry, from the Java Developer's Resource.
Twelve years ago drawing lines, texts and pictures was pretty hot stuff. Today users expect more. Modern applications have dialog boxes, menus, radio buttons, scroll bars, checkboxes, tool palettes, hot tips and more. Java provides premade components to implement many of these more modern application features. These include buttons, checkboxes, scrollbars, list boxes, pop-up menus and more.
Collectively these user interface items are called widgets. In Java widgets are all subclasses of java.awt.Component and are also called Components. And although there arenąt any premade widgets to implement some of the more modern user interface elements like hot tips or floating palettes, youąll see how to use the basic classes to roll your own.
In This Chapter You Will Learn
What a Component Is
What a Container Is
What a Label Is
How to Use Buttons
How to Create a Custom Button.
The Examples
Example 14.1: Labels: Hello Container
Example 14.2: Buttons: Button Test
Example 14.3: Fortune Teller
Example 14.4: Double Fortune
Examples from Other Chapters
[ Cafe Au Lait | Books | Trade Shows | Links | FAQ | Tutorial | User Groups ]
Copyright 1996 Elliotte Rusty Harold
elharo@sunsite.unc.edu
Last Modified July 23, 1996
Wyszukiwarka
Podobne podstrony:
index (462)indexindexindexindexindexindexindexindexwięcej podobnych podstron