Saturday, September 21, 2013

Java program to create a frame using Swing

import javax.swing.*;
class P1{
public static void main(String args[]){
JFrame j=new JFrame();
j.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
j.setSize(300,300);
j.setVisible(true);
}
}

Output:-


No comments:

Post a Comment

Ads Inside Post