Example Programs

 <  Day Day Up  >  

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

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

http://java.sun.com/docs/books/tutorial/uiswing/layout/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.

Code Example

Where Described

Notes

CustomLayoutDemo

page 100

Uses a custom layout manager called DiagonalLayout .

GraphPaperTest

page 100

Uses a custom layout manager to lay out components in a grid. This example also implements LayoutManager2 .

AbsoluteLayoutDemo

page 101

Demonstrates absolute positioning.

 <  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