Codepadma
Play with Codes
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Ads Inside Post
No comments:
Post a Comment