FileDocCategorySizeDatePackage
JFrameFlowLayout.javaAPI DocExample497Sun Jan 23 12:06:36 GMT 2000None

JFrameFlowLayout

public class JFrameFlowLayout extends JFrame

Fields Summary
Constructors Summary
public JFrameFlowLayout()

		Container cp = getContentPane();

		// Make sure it has a FlowLayout layoutmanager.
		cp.setLayout(new FlowLayout());

		// now add Components to "cp"...
		cp.add(new JLabel("Wonderful?"));
		cp.add(new JButton("Yes!"));
		pack();
	
Methods Summary
public static voidmain(java.lang.String[] args)

		new JFrameFlowLayout().setVisible(true);