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