The use of the Java Swing plugin

Source: Internet
Author: User

In order to complete Java Experiment 5, I downloaded the Java Swing plug-in, download the installation process will not repeat, this has a tutorial point here

After groping, I learned the basic use of plug-ins

1. Create a Java Project in Eclipse, set up a package,

2., click the other option

3. Select Application Window, then click Next

4. Enter this page, Source folder to select the project's SRC folder, package Select project, name own definition, point finish

5. At this point in the package there will be a Java file called NewWindow (Mywindow is the class I wrote before, people ignore it)

6. In the lower left corner of the Newwindow.java file, there is a design button, which is clicked and then entered the interface.

7. This is a brand new window to wait for your design

------------------------------------------------------------------------------I'm a split line-------------------------------------- --------------------------------------------------------------

Demonstrate a very simple design process

1. Click the Absolute Layout button first, then click on the main window, so the main window layout is very free

2. Click on a component to place them in the window, where I select a label (JLabel) and a single-line text box (JTextField)

Once a component in the window is selected, there is a list of properties on the left, where you can change the properties.

3. I spelled out a landing screen, barely able to use

Run it:

Note: Currently we only implement the graphical interface, the response of the event to the source file to write their own.

--------------------------------------------------------------------------------------------------------------- -----------------------------------------

Summary: In this experiment, although not much experience before, but still rely on the internet and their own groping to make, although it took a long time, but I feel this than others taught me how to do much better.

Encounter difficulties to solve their own, the beginning of time will be very slow, but long time to explore the solution to the problem, their own problem solving speed and ability will be greatly improved.

Use of the swing plug-in for Java

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.