Monday, June 15, 2009

Simple Frame

import java.awt.*;

public class FrameExample{
Frame f;

public FrameExample(){
f=new Frame("Hello ");
}
public void launchFrame(){
f.setSize(400,170);
f.setBackground(Color.blue);
f.setVisible(true);
}
public static void main(String args[]){
FrameExample guiwindow=new FrameExample();
guiwindow.launchFrame();

No comments:

Post a Comment