Java awt Package Button Demo


	import java.awt.*;
class ButtonDemo
{
public static void main(String args[])
{
Frame f = new Frame();
f.setLayout(new FlowLayout());
Button b = new Button("Apply");
f.add(b);
f.setSize(300,300);
f.setVisible(true);
}
}

Comments