FileDocCategorySizeDatePackage
FrameDemo.javaAPI DocExample781Sun Mar 07 19:38:18 GMT 2004None

FrameDemo

public class FrameDemo extends Frame
Make a Frame with two Panels.
version
$Id: FrameDemo.java,v 1.4 2004/03/08 01:38:17 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(top_frame, BorderLayout.NORTH);
		Panel bottom_frame = new Panel();
		bottom_frame.add(new Button("OK"));
		bottom_frame.add(new Button("Cancel"));
		add(bottom_frame, BorderLayout.SOUTH);
		pack();
	
Methods Summary
public static voidmain(java.lang.String[] av)
"main program" method - construct and show

		new FrameDemo().setVisible(true);