Thread: [Waba-commits] CVS: waba/src/share/classes/waba/samples/helloworld HelloWorld.java,NONE,1.1 HelloWor
Status: Abandoned
Brought to you by:
bornet
From: Manfred R. <mr...@us...> - 2004-12-11 17:39:30
|
Update of /cvsroot/waba/waba/src/share/classes/waba/samples/helloworld In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15215/waba/samples/helloworld Added Files: HelloWorld.java HelloWorldAWT.form HelloWorldAWT.java HelloWorldApplet.java Log Message: Added some rudimentary samples --- NEW FILE: HelloWorld.java --- /* * $Id: HelloWorld.java,v 1.1 2004/12/11 17:39:21 mriem Exp $ * * Copyright (c) 2004 Waba @ Sourceforge. All Rights Reserved. */ package waba.samples.helloworld; /** * A simple Hello World application. <p> * * @author Manfred N. Riem (mr...@us...) * @version $Revision: 1.1 $ */ public class HelloWorld { /** * Main method. * * @param arguments the command line arguments */ public static void main(String[] arguments) { System.out.println("Hello World"); System.exit(0); } } --- NEW FILE: HelloWorldAWT.form --- <?xml version="1.0" encoding="UTF-8" ?> <Form version="1.0" type="org.netbeans.modules.form.forminfo.FrameFormInfo"> <SyntheticProperties> <SyntheticProperty name="formSizePolicy" type="int" value="1"/> </SyntheticProperties> <Events> <EventHandler event="windowClosing" listener="java.awt.event.WindowListener" parameters="java.awt.event.WindowEvent" handler="exitForm"/> </Events> <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/> </Form> --- NEW FILE: HelloWorldAWT.java --- /* * $Id: HelloWorldAWT.java,v 1.1 2004/12/11 17:39:21 mriem Exp $ * * Copyright (c) 2004 Waba @ Sourceforge. All Rights Reserved */ package waba.samples.helloworld; /** * A Hello World application in AWT. <p> * * @author Manfred N. Riem (mr...@us...) * @version $Revision: 1.1 $ */ public class HelloWorldAWT extends java.awt.Frame { /** * Constructor. <p> */ public HelloWorldAWT() { initComponents(); } /** * Initializes the components. <p> */ private void initComponents() {//GEN-BEGIN:initComponents addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(evt); } }); pack(); }//GEN-END:initComponents /** * Exit the Application */ private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm System.exit(0); }//GEN-LAST:event_exitForm /** * @param arguments the command line arguments */ public static void main(String args[]) { new HelloWorldAWT().show(); } // Variables declaration - do not modify//GEN-BEGIN:variables // End of variables declaration//GEN-END:variables } --- NEW FILE: HelloWorldApplet.java --- /* * $Id: HelloWorldApplet.java,v 1.1 2004/12/11 17:39:21 mriem Exp $ * * Copyright (c) 2004 Waba @ Sourceforge. All Rights Reserved. */ package waba.samples.helloworld; /** * @author Manfred N. Riem (mr...@us...) * @version $Revision: 1.1 $ */ public class HelloWorldApplet extends java.applet.Applet { /** * Initializes the applet. <p> */ public void init() { } } |