Creating Tabbed Folder Panels and Card Layout Panels

This section covers: To add card panels:
  1. Click on the Card Layout Panel component in the Panel palette tab.
  2. Click in the cell where you want to place the component.
  3. Open the attribute editor by clicking on its button in the main toolbar.
  4. Click on the Edit cards button in the attribute editor to open the Cards dialog box.
  5. Click Insert to create a panel.
  6. For each panel added, enter a unique ID in the name box and type a label for the folder in the label box.
  7. Click OK to add the folders to the layout.
  8. In each panel in the layout, click in the empty gridbag panel and use the arrow keys to add rows and columns.
  9. Click on a palette component and click in the cell where you want to place the component.

Special Attributes

cards Opens the Cards dialog box. Use this dialog box to add, delete, name, and label the stack of panels (cards).
delayedCreation If set to true, delays creation of the component until it is requested by the program.
labelAlignment Sets the position (left, right, center) of the label on the top edge of the panel.

To add Tabbed Folders:

  1. Click on the Tabbed Folder Panel component in the Panel palette tab.
  2. Click in the cell where you want to place the component.
  3. Open the attribute Editor by clicking on its button in the main toolbar.
  4. Click on the Edit cards button in the attribute editor to open the Cards dialog box.
  5. Click Insert to create a tab.
  6. For each tab added, enter a unique ID in the name box and type a label for the tab in the label box.
  7. Click OK to add the tabs to the layout.
  8. In each folder in the layout, click in the empty gridbag panel and use the arrow keys to add rows and columns.
  9. Click on a palette component and click in the cell where you want to place the component.

Special Attributes

cards Opens the Cards dialog box. Use this dialog box to add, delete, name, and label the stack of panels. The string in the Label field is displayed on the folder's tab.
delayedCreation If set to true, delays creation of the component until it is requested by the program.
labelAlignment Sets the position (left, right, center) of the label on the top edge of the panel.

See also:

GUI Builder Palette
Laying Out the Interface
Layout Managers and Nesting Panels
Generating Java Source Code
Adding Operations to Components

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