Creating a simple application to introduce the VisualMust basics:
This chapter is organized to give you an overview of VisualMust's functions so you can become productive without delay. By understanding how Visual Must is used conceptually, you will be able to make the most effective use of this tool.
After starting VisualMust, a popup dialog box will be displayed. Select "Create a new design" and click on the OK button. You will be asked the name of this new design, then the type of the design to be created: select "Application" and "JFrame".
![]() ![]() |
|
![]() |
|
![]() Selecting an object can be made by clicking the left mouse button. If you click the mouse button, such as shown in the side picture, you may move or resize components. If you do the same operation (clicking with the Ctrl key), you will be able to duplicate the component. If using the Shift key, you will be able to remove a component from its parent and drop it to the desktop or to another component. This will be very useful when you want to insert a component between two components. |
![]() |
|
![]() |
![]() |
|
![]() |
![]() |
|
![]() |
![]() |
|
OBJECT PROPERTIES![]() |
![]() |
|
ALIGNMENT
|
![]() |
|
EVENTS
This will cause the juxtaposed window to be displayed. In the frame at the bottom of the list, you will see an event named "WindowClosing". Select this item and click on the Create button. |
![]() |
|
![]() Replace the "Remove this comment and specialize processing here" with : System.exit (0);
|
![]() |
|
![]() actionPerformed On the right-hand side, click on Create. You have created a action on this button that will be enabled when you click on this button. |
![]() |
|
![]() get_JLabel().setText("Hello"); By using the get_JLabel() method, you will get an object named Label and set a "Hello" text. Note : changing the names of your controls via the properties panel will cause your source code to be modified in accordance with the preferences you set in the Option menu. You have just created a simple application to be compiled. |
![]() |
|
|
|