站内搜索: 请输入搜索关键词
当前页面: 图书首页 > JFC Swing Tutorial, The: A Guide to Constructing GUIs, Second Edition

Example Programs - JFC Swing Tutorial, The: A Guide to Constructing GUIs, Second Edition

Previous Section  < Day Day Up >  Next Section

Example Programs

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.

    Previous Section  < Day Day Up >  Next Section