This example uses the IBM VisualAge for Java Enterprise Edition V2.0 Composition Editor, but other visual bean builders are similar. This example creates an applet for a button that, when pressed, runs a command on the iSeries or AS/400e server.
Figure 1: VisualAge Visual Composition Editor window - gui.BeanExample
Figure 2: Changing the label of the button to Run command
Figure 3: Changing the name of the user ID to TestUser
Figure 4: Changing the command of the CommandCall bean
Figure 5: Connecting AS400 bean to CommandCall bean
Figure 6: Connecting a method to a button
When you are finished, the VisualAge Visual Composition Editor window should look like Figure 7.
Figure 7: VisualAge Visual Composition Editor window - Finished bean example