For those new to Netbeans 5.5 and know some basic java, and would like to play with the GUI interface, the current tutorial on checkbox(buttons)http://java.sun.com/docs/books/tutorial/uiswing/components/button.html on Sun Java Tutorial website would not be IDE specified. In this FAQ, I would demonstrate with the checkbox in the new netbean 5.5, on how the placement of the codes differ from what the Sun Java tutorial does. So where to put those codes? Need a sample, below is the source code and project file is attached.
There are ceratin lines of code that has become redundant with netbeans 5.5. Some of them are initiailising of the checkboxs, actionlistener and event handler. So look into the codes of the sample working project to find where is the new placement of crucial code implemetation to get the sample working.
Do refer to the original code provided with Sun Java Tutorial and the revised attached code.
Application is similar to the Sun Java tutorial webpage.
| myCheckBoxDemo.rar | ![]() |
87713 bytes |