Java visual interface design with Eclipse, VE
Author: chinamao-mail: chinamao@gmail.com reproduced please reference related articles
VE installation:
1, there are two ways, one is the UPDATE method in eclipse. Such as articles; another method is to extract the downloaded VE into the Eclipse installation directory.
2
,
Ve
Installation of language packs, everyone can
Eclipse Ve
The website downloads the language package, then extract it to the Eclipse installation directory, restart, if the language has not changed, please see the relevant article. 3. In the VE installation, it should be noted that GEF and EMF must be installed with the corresponding version of Eclipse when installing VE. The latest version of VE is 1.0, which adds support for SWT and SWING; visual programming and correct conversion between CODE; and support for Eclipse 3.0.1. So when we install VE, we should also install the 3.0.1 version of EMF. Installation Confirmation and VE Configuration: Window -> Preferences -> Selecting the visual editor under Java can see the following VE configuration page. There are three aspects of the configuration of VE: 1, appearance; 2, code generation; 3, pattern style. 1) Appearance: Configure the interface when VE startup. If you open the properties view, the JavaBean view. And Swing appearance settings, such as (Metal, CDE, and Windows style.) Figure 1: VE Sets Audio 2) Code Generation: Can set whether or not to generate a comment for new expressions; whether to generate TRY, Catch block. And the VE visualization setting is delayed with the synchronization time of the JavaBean code. Figure 2: VE Setting Code Generation 3) Mode Style: Figure 3: These configurations we don't have to modify it. Start our Wysiwyg Tour 1, the new Java project name is: vetest. Figure 4: 2, new Java class, select the visual category 5: 3, configure the Java visual class Enter myJPanel in the name, select Swing panel in the style. And select the main method. Click to complete the Eclipse to generate a view of the VE. The following is the alternating replacement of design and source code, you can use the design map to make your design sketch, then in the source code. 2) JavaBean view, each component of your design and components you are displayed here. 3) Attributes: Like other visual editing editing, it is a detailed setting for each attribute of the components you selected. 4) Alignment button: In Ve, when you design, just drag and drop the component to the top of the panel, then you can use this button to set the accurate position, size of the component. 5) Synchronization button: If you write a large number of code in the code terminal, you can choose to pause synchronization first, so you will be able to sync to the view after you write the code, don't you sync Will greatly increase the workload of Eclipse. Figure 7: 5, drag and drop the assembly, draw a sketch. (to be continued)
related articles