Example Programs

 <  Day Day Up  >  

You can find source files for all of the examples from this chapter on the CD and online:

JavaTutorial/uiswing/ components /example-1dot4/index.html

http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/index.html

The preceding URLs take you to an index that has links to the files required by each example. You can go directly to the entry for a particular example by adding # ExampleName to the URL. Most examples have a "Run" link in the example index which executes the example using Java Web Start technology

Example

Where Described

Notes

HtmlDemo

page 44

Lets you experiment with HTML formatting by setting the text on a label.

ButtonHtmlDemo

page 45

Adds font, color , and other text formatting to three buttons .

TopLevelDemo

page 47

Demonstrates the use of a top-level container. The frame contains a menu bar and a large blank label in the frame's content pane.

Converter

page 51

Has two sliders, each tied to a text field to convert metric measurements.

TextSamplerDemo

page 62

Uses one of each of Swing's text components.

TextComponentDemo

page 64

Contains a customized instance of JTextPane .

 <  Day Day Up  >  


JFC Swing Tutorial, The. A Guide to Constructing GUIs
The JFC Swing Tutorial: A Guide to Constructing GUIs (2nd Edition)
ISBN: 0201914670
EAN: 2147483647
Year: 2004
Pages: 171

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net