AS/400 Toolbox for Java \ Graphical Toolbox \ Examples \ GUI Builder example

GUI Builder example

When the examples contained in this section are put together with the correct data beans working behind the scenes, you get a total GUI application.

When you run this example, the first panel that comes up looks like this:

Notice that this screen allows you to use the dynamic panel manager. You can resize the screen to be large or small:

When you use the dynamic panel manager, while the size of the panel and the panel controls changes, the size of the text does not.

The panel allows you to access either a property sheet or wizard. You can either select the one you want to view from the toolbar, or use the pulldown menu that is labeled Launch. Being able to choose between the toolbar and the menu illustrates linking menu items. The pulldown menu looks like this:

If you select the property sheet option, you'll see a panel like this:

You will see two other panels if you select the other two tabs:

Returning to the beginning, this is the panel you will see if you choose the wizard from the pulldown menu:

The first panel of the wizard gives you many options:

Selecting "Rock" and clicking "Next" reveals the following panel:

Clicking next again gets you to the final screen:

However, this example has been programmed to have a loop. When the user selects Country:

The second panel looks similar:

But clicking next takes you back to:

Instead of the finish screen. In other words, the programmer has determined that nobody should select country as their favorite form of music.

From the original panel, you can also select other functions from the left frame below the toolbar:

Click on the word "Panel" and you'll see:

This panel example has been programmed with the option to disable the image. Deselcting the image gives you the same screen with the image grayed out:

This panel also illustrates the pulldown menu option:

If you click on "Tabbed pane", you'll see the following in the right side of the panel:

Clicking the second tab gives you:

Going back to the first tab, you can deselect the age field by checking the radio button:

Doing this grays out the age field, rendering it useless in the second tab:

The final option for you to select is "Table Panel", which illustrates the use of a table panel with a custom renderer and a custom cell editor:


[ Information Center Home Page | Feedback ] [ Legal | AS/400 Glossary ]