Develop a visual interface using Eclipse Windowsbuilder

Source: Internet
Author: User

52562131

This is I used to write an article in the Baidu Library, mainly on the installation of Windowbuder plug-ins in eclipse so that Java can be like C + + as a visual development, no nonsense to say, the direct start

Window Builder Installation

Enter this site http://www.eclipse.org/windowbuilder/download.php

Then right-click the link after the version, copy the linked address

Click Help----->inseal New Sol ... Picture below

Click to paste the copied address in the box

Select All and then click Next

Wait for the installation to complete and the time is longer

Usage

Create Java projects and packages normally, create graphical interfaces as follows, click Other

Select Window ..... Then click Finish

Fill in the class name in name

Click Design to enter the graphics

The layout of the best choice of this, you can select the part location according to the coordinates, drag to where to put where

Set Point Absolute ... And then a little bit more on the canvas.

Click on the widget and move the mouse to the canvas where the widget appears, clicking on the mouse pointer

JButton part double-click into the source code, write the button in the position of the pointer click event Execution

Add mouse or keyboard events lable TextField and other parts

Key and mouse are mouse events and keyboard events, click on the top of the right to enter code to write event execution code.

Create a panel BB

Put three buttons in the inside

Add this panel to the main page

Create an object of the BB () class in the Initialize method and set the position and size

Go to Canvas view

The panel you have defined has been added to the main panel.

Develop a visual interface using Eclipse Windowsbuilder

Related Article

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.