Java Desktop program GUI programming has been criticized. it seems that people always think that Java cannot develop friendly interfaces at all. the degree of garbage seems to remain in the early stage of the graphic operating system. it seems that all this is due to people's misunderstanding of its "layout manager.
I am not very qualified to comment on this too much, but I would like to introduce a Java GUI program design that can be implemented without understanding the layout manager. I hope to change the opinions of some beginners.
First, install the latest netbeans ,:
Http://us1.mirror.netbeans.org/Download/5_0/fcs/200601251500Netbeans-5_0-windows-zh_CN.exe
If the connection fails, go to the official website to find it:
Http://www.netbeans.org
This version is a Chinese version and it is quite quick to get started. After installation, open the IDE and the interface should look like this:
Fig 1.1
1. Create a project:
The netbeans program design is also project-based. First, click the file in the upper right corner-create a project.
Fig 1.2
Select an application and click Next.
Fig 1.3
Enter the path and click Finish.
Fig 1.4
Start creating: Figure 1.5
After the creation is complete, pay attention to the changes on the left-side project tab:
Fig 1.6
A project has been created. This is the process of creating a project in netbeans. When creating another project, select another project in Figure 1.3.
2. Create a jframe
Right-click the source code package and follow the instructions below:
Fig 2.1
After clicking the jframe form:
Fig 2.2
Enter the class name and package name. Click Finish.