Saturday, June 25, 2011

creating a new class in NetBeans


Product Version: NtetBeans IDE Dev (Build nbms-and-javadoc-7160-on-20110507)
Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02
System: Linux version 2.6.38-8-generic running on amd64; UTF-8; en_US (nb)
Userdir: /home/jamie/.netbeans/7.0

here's how to create a new java class in NetBeans ...

first, right click on the Java Source Package (name) and choose New > Java Class... (i could not get a screen shot while making selections - either the program or the os wouldn't allow it)

a new window will appear for you to name the new class as you wish
new java class window in netbeans
either hit [enter] or [Finish] button and the new class file is created and currently displayed
new class file is now the workspace
start programming the new class
new class file with comments
sometimes NetBeans adds things needed only locally and not elsewhere such as "package [name];" at the top of the file.  i just leave myself a note to comment out in those cases. if there are oodles of files, you may want to create a makefile to include commenting out the top line using a script.

cioa

No comments:

Post a Comment