Create a swing app with MyEclipse

Source: Internet
Author: User

In my opinion, Java is strong: Java is not only applicable to the B/s architecture of the program, is to do the service end of the choice, but also to do the C/S architecture program. While this technology is now being used less widely in the market and replaced by languages such as C #, Swing does have the ability to implement desktop client programs.
The best way to learn Java is to know about swing, or when the boss asks you if you know swing. It would be awkward for you to say you didn't know. Our director asked me and another colleague if I knew about swing, and the lad looked at me with a face.
Let's take a look at how to create a swing program with MyEclipse.
First prepare the MyEclipse (the version I used is 8.5) and the JDK and configure the environment variables.
1: First create a common Java project

650) this.width=650; "Src=" http://dl2.iteye.com/upload/attachment/0121/5553/ A48b5b52-b080-3e4c-80d7-26a1cb61d522.png "alt=" A48b5b52-b080-3e4c-80d7-26a1cb61d522.png "/>

650) this.width=650; "Src=" http://dl2.iteye.com/upload/attachment/0121/5555/ 055d6c1a-3920-3e06-80cb-2d2b8e931900.png "alt=" 055d6c1a-3920-3e06-80cb-2d2b8e931900.png "/>

2: Right click on the project you just created, new select other:
650) this.width=650; "Src=" http://dl2.iteye.com/upload/attachment/0121/5561/ 6723794f-afaf-3966-9a2e-456204e5aa04.png "alt=" 6723794f-afaf-3966-9a2e-456204e5aa04.png "/>
3: In order to quickly find, enter in the text box: Mat

650) this.width=650; "Src=" http://dl2.iteye.com/upload/attachment/0121/5563/ 560c2eaf-79fb-3f80-a1a2-587273974e39.png "alt=" 560c2eaf-79fb-3f80-a1a2-587273974e39.png "/>

4: Fill in the form name and select JFrame. Finish

650) this.width=650; "Src=" http://dl2.iteye.com/upload/attachment/0121/5565/ Cc1f3bfc-1616-3dfb-9294-373768256346.png "alt=" Cc1f3bfc-1616-3dfb-9294-373768256346.png "/>

A swing project is created right here. And here's the thing for swing. Like C #, you can drag it yourself, or you can write your handwriting. Beginner's words can be dragged on their own familiar, skilled later best write their own.

650) this.width=650; "Src=" http://dl2.iteye.com/upload/attachment/0121/5571/ 219cfac4-ff6c-3107-a62a-434dd0a6e302.png "title=" Click to view the original size picture "class=" Magplus "width=" "" height= "336" alt= " 219cfac4-ff6c-3107-a62a-434dd0a6e302.png "/>

Use the Label control:

650) this.width=650; "Src=" http://dl2.iteye.com/upload/attachment/0121/5573/ 67a01253-95a9-32eb-8da9-fc2cb861605c.png "alt=" 67a01253-95a9-32eb-8da9-fc2cb861605c.png "/>
Effect:

650) this.width=650; "Src=" http://dl2.iteye.com/upload/attachment/0121/5575/ 90275f69-1260-3aba-abaa-92f87da430b3.png "alt=" 90275f69-1260-3aba-abaa-92f87da430b3.png "/>


This article prohibits the original form reproduced, reproduced please bring the original address:
http://hellomyword.iteye.com/blog/2341598

This article is from the "12174301" blog, please be sure to keep this source http://12184301.blog.51cto.com/12174301/1877384

Create a swing app with MyEclipse

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.