Illustration of FlowLayout
Here are several versions of the same applet displayed in
different sized areas. Note how the FlowLayout rearranges the Buttons.
Here the width is 225 and the height is 100
Here the width is 125 and the height is 150
Here is the code for the applet
import java.awt.*;
public class Flow extends java.applet.Applet
{
public void init()
{
add(new Button("One"));
add(new Button("Two"));
add(new Button("A Longer Label"));
add(new Button("Three"));
add(new Button("Four"));
add(new Button("Five"));
}
}