• Post Reply Bookmark Topic Watch Topic
  • New Topic

size  RSS feed

 
AL thennakoon
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
import javax.swing.*;
public class amila{
public static void man(){
JFrame frame=new JFrame("PINGING");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JLabel label=new JLabel("CHECKING AREA");
frame.getContentPane().add(label);
setSize(300,200);
frame.pack();
frame.setVisible(true);
}
public static void main(String []a){
man();
}
}

////// can any one tell me whears the compile error and corcetion pls
 
Chiranjeevi Kanthraj
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
frame.setSize(300,200);
 
AL thennakoon
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks chiru
[ March 10, 2008: Message edited by: AL thennakoon ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!