Creating a project is the same as creating a Java program.
Import Java. AWT. graphics; import javax. swing. jframe; import javax. swing. jpanel; public class simpleswinghelloworld {/***** @ title: Main * @ description: program entry * @ Param ARGs setting file * @ return void return type * @ throws * @ author mrjing * @ date 11:57:36 */public static void main (string [] ARGs) {jframe myframe = new mysimpleswing (); myframe. setdefaclocloseoperation (jframe. exit_on_close); myframe. setv Isible (true) ;}/ ***** @ classname: mysimpleswing * @ description: interface Class * @ author mrjing * @ date 2012-8-2 11:58:20 PM **/class mysimpleswing extends jframe {public mysimpleswing () {settitle ("window title"); setsize (default_width, default_height ); add (New mypanel ();} public static final int default_width = 400; public static final int default_height = 300;} class mypanel extends jpanel {public void paintcompo NENT (Graphics g) {super. paintcomponent (g); G. drawstring ("Hello world! ", 100,150 );}}