Note: Only Java AWT objects are available on the Palette when you select Java as the current language.
Code generated objects
In some cases, non-visual objects are required to set resources. The following objects are not on the Palette, but are created when Builder Xcessory generates code:
· BorderLayout
· FlowLayout
· CardLayout
· GridLayout
· GridBagLayout
· GridBagConstraints
· CheckBoxGroup
These objects supply additional resources in the Resource Editor for the associated object.
The following sections provide descriptions of each Java object on the Palette, in alphabetical order. Refer to your Java AWT documentation for more detailed information.
The AwtDialog object is a top-level window used to create dialogs. Can be modal, that is, will allow only this window to receive input from the user.
· Dialog can have a title.
· Dialog can be resizable.
· Default layout is BorderLayout.
-
Note: The Make Class dialog is automatically displayed when you click on Dialog from the Palette.
The AwtFrame object is an optionally resizable top-level window that has a border and can also have an associated menu bar, title, cursor, or icon.
· Pops up a separate window outside the Web browser.
· When the Frame is no longer necessary, the dispose method must be called to allow the frame to release its window system resources for reuse.
· Default layout is BorderLayout.
The AwtList object scrolls strings. You can set the number of visible rows in the list and you can set whether the selection of more than one item is allowed.
· Strings can be added and removed from List.
· You can query the list.
· When the user double-clicks on an item, a List generates an event.
The AwtPanel object is a container that can be used inside other containers. Allows you to make more intricate layouts by combining them with subpanels. It also can be subclassed to create custom containers.
· Does not create a separate window shell of its own.
· You can nest Panels to achieve a specific layout.
· Default layout is FlowLayout.