Copy GUI_Extension.jar into a folders according of you OS:
Description of the interface
|
Available components
|
After BlueJ starts and an project open this extension is avalible in the Tools menu under the name "Simple GUI Extension".
Components are being added on the main canvas via Drag and drop.
After adding component on the main canvas, the table with properties will be updated.
Properties such as 'component size', 'foreground color' and 'background color' are entered using the numeric values separated by a semicolon. Font is specified by it's name, font style and size, separated by a semicolon.
Enabling and disabling the selected component as well as changing it's visibility is avalible by clicking the appropriate cell in the table. If you hide a component and loose it's focus, so you have to select it from the Combo Box with the list of components. When the component gains focus again, you will be able to change the visibility again in there.
Use the mouse to change specific attributes, such as component's 'size' and 'position' or via pop-up menu it's foreground and background color.
Resizing is accessible after moving to the bottom right corner of components.
Use the keyboard for deleting by DELETE key or moving component by using arrow keys.
After a component gains focus switch on the panel titled 'Events' where you can register events.
After selecting an event press the button [...] to display the dialog window. Type in the method name which will be performed during the event. If the name of the method is already in use, the application will notify you.
Application allows menu generation via a tree structure.
Menu name should be unique (uppercase and lowercase letters do not make difference).
You can rename any menu item by one clicking on it and waiting a little or by using F2 key or selecting 'Rename' from the pup-op menu.
Last options sets acceleration keys to menu items (like save = CTRL+S). Changes will be saved automaticaly.
To insert a menu separator use a hyphen.
The code generation occurs in two cases:
Code generation is one way only ie., for example if you make some changes in the code, thay will not be reflected in the design. Any changes in the code will not be saved.
The name of the main canvas is used as the java class name.
Some properties might not be used, but due to the fact that the application serves to beginners, it is better to show a complete code.
You can save the code by selecting "File -> Save" from the menu or press CTRL + S. The name of the name of main canvas will be used as name of java class name. If this class already exists, the user will be notified.
After the code is save BlueJ reloads the package and you are ready to compile and run your project.