Adding Buttons

  1. Click on the Text Button component in the AWT palette tab.
  2. Click in the cell where you want to place the button.
  3. Open the attribute editor by clicking on its button in the main toolbar.
  4. Type a unique component ID in the name box.
  5. For a labeled button, enter a button label in the text box.

    For an unlabeled button, delete the default button entry in the text box. To reduce the size of the unlabeled button, change the value of the standard attribute to false.

Special Attributes

standard When set to true, the component strives to be a standard size. This attribute is intended to make rows of buttons with varying amounts of text more uniform.

To add checkboxes or radio buttons, see Adding Checkboxes and Radio Buttons.

See also:

Laying Out the Interface
Generating Java Source Code
Adding Operations to Components
GUI Builder Palette

Visual Java GUI Builder API Documentation
Visual Java GUI Builder Runtime Packages
Class Hierarchy
Index of All Fields and Methods