< Day Day Up > |
http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html Each of the following how-to sections describes how to use a particular layout manager ”an object that controls the size and position of components in a container. These sections are organized alphabetically for quick reference. To see pictures of typical uses of each layout manager, you can refer to A Visual Guide to Layout Managers (page 88) in Chapter 4. All of these sections assume that you're familiar with layout management concepts. These prerequisites are covered in Chapter 4, Laying Out Components within a Container (page 87). Chapter 4 also includes instructions on how to use absolute positioning (no layout manager) and an example of writing a custom layout manager. If you have any difficulties, be sure to refer to Solving Common Layout Problems (page 738) in the Appendix. You can find source files for all the examples in 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 example 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 index which executes the example using Java Web Start technology.
|
< Day Day Up > |