To create Java Project click on new Project Button or press Ctrl+ shift + N keys . Below mentioned window will be opened. Here in Categories section, expand Sample node, select Java and at right side Project section, select " GUI Form Example " Java SE Swing Project as showing in below snapshot. Click at next button for further process.
Here, you will be asked for Project name, Project Location and Project Folder. You can customized these options as per requirement. Click at Finish Button, Netbeans IDE will create the said Java Swing GUI Form project.
Java Swing GUI Form Project has created with all required project files and 3 sample form files which are mentioned below and as showing below snapshot.
On clicking Antenna.java class, it will be opened in editor window as showing below. Here in editor, form is opened in Design window, here you can edit form graphically. By clicking source view, you can see its code.
Below snapshot is Antenna Form component navigator, here you can see, how Swing components are structured to create a GUI Form. By clicking on any component, you can modify its name, properties, data binding etc.
Click on ContactEditor.java file to open it, just like previous form, it is opened also in designed view, here you can also customized it as per requirement and learning.
Below snapshot is of Find.java class. you can customized it as per your requirement.
To run this project click on run button as showing below. You can also run each Form file individually, by right click on form file and select Run File open. Select file will be compiled and run.
After running project a new pop up window will be opened as showing below, here you will see options of said three main java classes.
1- Example Antenna, 2- Example ContactEditor 3- Example Find
select one class and click at OK button to open its form
By selecting Antenna Form, below GUI form window will be opened. These forms are just GUI interface example with out any functions. In this tutorial, we are just learning about Java Swing, how can we use it for developing GUI desktop applications. Applications developed with Java Swing can be run on any operating supporting which is supported to Java.
Below is E-mail Contacts Form window
Below is Find Form window