How to Start a New BlueJ Class

If you have a project open, then you can select the New Class button to bring up the dialog shown on the left.

At the moment we are just interested in a simple event applet so select that.

Don't forget to type a name, by convention a Class always starts with a Capital letter and internal words are also capitalized - eg HelloWorld.

You cannot have any spaces in the Class name.

If you don't see SimpleEventApplet or IBIO Class then you have not added the templates as described in getting started with BlueJ.

If you are using another IDE then just start a new Class following the method described in the supplied documentation.

If you are using a simple editor like Notepad, be sure to name the Class exactly as you save the file; eg Class PressMe must be saved in file PressMe.java.


 
Close this window to return to the previous page


Questions or problems related to this web site should be addressed to Richard Jones who asserts his right to be identified as the author and owner of these materials - unless otherwise indicated. Please feel free to use the material presented here and to create links to it for non-commercial purposes; an acknowledgement of the source is required by the Creative Commons licence. Use of materials from this site is conditional upon your having read the additional terms of use on the about page and the Creative Commons Licence. View privacy policy.

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License.

© 2001 - 2006 Richard Jones, PO BOX 246, Cambridge, New Zealand; This page was last modified on April 4, 2006