Using netbeans to quickly develop Java Desktop programs (I) create a jframe

Source: Internet
Author: User
Tags netbeans

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.