FileDocCategorySizeDatePackage
Flow.javaAPI DocExample604Sat Apr 23 22:35:40 BST 2005None

Flow.java

//file:	Flow.java
import javax.swing.*;

public class Flow extends JPanel {

  public Flow() {
    // FlowLayout is default layout manager for	a JPanel
    add(new JButton("One"));
    add(new JButton("Two"));
    add(new JButton("Three"));
    add(new JButton("Four"));
    add(new JButton("Five"));
  }

  public static	void main(String[] args) {
    JFrame frame = new JFrame("Flow");
    frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );

    frame.setSize(400, 75);
    frame.setLocation(200, 200);
    Flow flow =	new Flow();
    frame.setContentPane(flow);
    frame.setVisible(true);
  }
}