User:Ashish.gbu2009

Frame in java&lt;/u

Simple Code here:

import javax.swing.*;

import java.awt.*;

public class my_first_frame

{

JFrame f;

public void only_frame // user define method here;

{

f=new JFrame("My First Frame");

f.setSize(300,300);

f.setVisible(true);

}

public static void main(String args[])

{

my_first_frame myframe=new my_first_frame;

myframe.only_frame;

}// close main method here;

} // close class here