Layout
that simply renders each child component into its container. The size and position of children are not altered by this layout. Margins can be applied directly to child components to control the spacing between components.
componentOrientation
property and may be one of two values: ComponentOrientation.LEFT_TO_RIGHT
ComponentOrientation.RIGHT_TO_LEFT
align
property. The possible values are: For example, the following picture shows an applet using the flow layout manager (its default layout manager) to position three buttons:
Here is the code for this applet:
import java.awt.*; import java.applet.Applet; public class myButtons extends Applet { Button button1, button2, button3; public void init() { button1 = new Button("Ok"); button2 = new Button("Open"); button3 = new Button("Close"); add(button1); add(button2); add(button3); } }
A flow layout lets each component assume its natural (preferred) size. @version 1.58, 11/17/05 @author Arthur van Hoff @author Sami Shaio @since JDK1.0 @see ComponentOrientation
Layout
that positions it's children using normal HTML layout behavior. The margin and spading can be specified.
TODO: vertical
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|