FileDocCategorySizeDatePackage
FrameDemo.javaAPI DocExample784Sat Nov 25 12:55:12 GMT 2000None

FrameDemo

public class FrameDemo extends Frame
Make a Frame with two Panels.
version
$Id: FrameDemo.java,v 1.2 2000/11/25 17:55:13 ian Exp $

Fields Summary
Constructors Summary
public FrameDemo()
Construct the object including its GUI

		setTitle("FrameDemo");
		Panel top_frame = new Panel();
		top_frame.add(new Label("User"));
		top_frame.add(new TextField(10));
		top_frame.add(new Label("Password"));
		top_frame.add(new TextField(10));
		add("North", top_frame);
		Panel bottom_frame = new Panel();
		bottom_frame.add(new Button("OK"));
		bottom_frame.add(new Button("Cancel"));
		add("South", bottom_frame);
		pack();
	
Methods Summary
public static voidmain(java.lang.String[] av)
"main program" method - construct and show

		new FrameDemo().setVisible(true);