Hi friends today i am going to teach u how to create attractive Interface using Netbeans in a very easy way.
GUI Basics:
GUI stands for Graphical User Interface. It is basically a type of user interface that allows the user to interact with the electronic devices through the graphical icons.
GUI was first developed at Xerox PARC by Alan Kay, Douglas Engelbart in 1981.
Designing:
GUI can be easily designed by Netbeans. Netbeans is a software development platform written in java. Netbeans platform allows applications to be developed from a set of modular software known as modules.
From here you can download
Here is the link where you can download Netbeans https://netbeans.org/downloads/
To run Netbeans properly it needs Java compiler so you have to download Java too. Here is the link where you can download java http://www.oracle.com/technetwork/java/javase/downloads/jdk10-downloads-4416644.html
STEP 1: 
Click on File>> New project >> New JFrame Form
STEP 2:

Here you have to fill Class Name
STEP 3:


After that you will find a design page and source page .In design page You can drag and drop the elements from the “Swing controls”.

Here in the right hand side you can see the swing container and swing controls.
Container:
It is subclass of component class. It has additional method that allows other component to be nested within it. It is responsible for layout.
Swings:
Swing is a part of Java foundation class (JFC). Its components are light weight. Swing controls are platform independent so these look and feel remains constant.
There are various type of swing controls
- Label– It is a graphical control element which displays text on the interface. It is not interactive, that means you can not edit that text in run time.
- Radio button- It is a group of button which is used for selecting more than one option.
- Toggle button-
- Button- It can be used to go to another page or to send information etc.
- Button group- It is a group of button in which only you have to choose one option among them, a person will not be able to choose more than one option.
- Combo box- It is a drop down box in which there are many lists from which a person has to select an option.
- List- It is not as same as combo box because here the list is given can be visible without clicking on the list swing but in combo box you have to drag the cursor there, after that you will be able to see the list.
- Text Field- Here user can write that means it is interactive in run time you can edit the texts here.
- Password Field- It is just like text field but the difference is that in run time whatever you are writing you will not be able to see. In the place of the text you will find istric (*).
- Spinner- It is also a kind of combo box but here you can edit or write on it whereas you are not able to do so in combo box. etc
Using above swing controls you can easily design an interface by just drag and drop method.

Leave a comment