Import javax. Swing. swingutilities;
Import java. AWT. borderlayout;
Import javax. Swing. jpanel;
Import javax. Swing. jframe;
Public class AAA extends jframe {
Private Static final long serialversionuid = 1l;
Private jpanel jcontentpane = NULL;
/**
* @ Param ARGs
*/
Public static void main (string [] ARGs ){
// Todo automatically generates method stubs
Swingutilities. invokelater (New runnable (){
Public void run (){
AAA thisclass = new AAA ();
Thisclass. setdefaclocloseoperation (jframe. exit_on_close );
Thisclass. setvisible (true );
}
});
}
/**
* This is the default constructor
*/
Public AAA (){
Super ();
Initialize ();
}
/**
* This method initializes this
*
* @ Return void
*/
Private void initialize (){
This. setsize (300,200 );
This. setcontentpane (getjcontentpane ());
This. settitle ("jframe ");
}
/**
* This method initializes jcontentpane
*
* @ Return javax. Swing. jpanel
*/
Private jpanel getjcontentpane (){
If (jcontentpane = NULL ){
Jcontentpane = new jpanel ();
Jcontentpane. setlayout (New borderlayout ());
}
Return jcontentpane;
}
}