Attributes common to most components are described in Laying Out GUI Interfaces.

Panel
labelAlignment
borderLabel on the top edge of the panel.

Frameicon
The path to the image can be a URL or (preferably)
a path name relative to the codebase of the
applet. So, if the applet's .class file and image
files are in the same directory, only the simple file name is
required.
location
Sets the initial coordinates of the frame on the screen.
menubar
Invokes the Menu Editor. For details about creating menus,
see Menus.
resizable
Determines if the size of the frame can be changed by the user.
size
Sets the initial size of the frame.
visible
Determines if the frame is initially visible.

Dialog Boxlocation
modal
Determines whether or not the dialog box is modal.
resizable
Determines if the size of the dialog box can be changed by the user.
size
Sets the initial size of the dialog box.
visible
Determines if the dialog box is initially visible.

Selection ModeWhen you select cells in the layout grid you can:
When you select components in the layout grid you can:

Gridbag Layout Panel
A shortcut for placing a component into a Gridbag Layout Panel:

Text Labelalignment

Text Buttonstandard

Image Labelimage
The path to the image can be a URL or (preferably) a path
name relative to the codebase of the applet. So, if the
applet's .class file and image files are in
the same directory, only the simple file name is required.
padWidth
Sets the number of pixels between the edge of the label
component and the image displayed within it.

Image Buttonimage
The path to the image can be a URL or (preferably) a path
name relative to the codebase of the applet. So, if the
applet's .class file and image files are in
the same directory, only the simple file name is required.
pressMovement
The number of pixels down and to the left that the image moves when the
button is clicked.
lineWidth
The width of the button bevel (in pixels).
padWidth
Sets the number of pixels between the edge of the button and the image displayed within it.

Single-Line Text Fieldeditable
numColumns
Sets the minimun width of the field to accommodate the
specified number of characters.

Multi-line TextFieldeditable
numColumns
Sets the minimum width of the field to accommodate the
specified number of characters.
numRows
Sets the minimum height of the field to accommodate the
specified number of rows.

Checkbox/Radio Buttonstate

Radio Button PanelTo create radio buttons:
labelAlignment
borderLabel on the top edge of the panel.

ListlistContents
visibleRows
Sets the number of rows in the list.

Multiple Column Listautowidth
displayRows
Sets the minimum number of rows displayed in the list.
headers
Inserts the names of column headers.
highlightItems
When set to true, and you later programmatically change the
values in one of the rows in the column list, that row will
be highlighted for a moment and then gradually fade.
Useful for demos or applications where you want to
draw attention to the arrival of new information in the
list.
selectable
Sets items in the list as selectable by users.
showHeaders
Determines whether column headers are displayed.

Choice Menu
Scrollbarminimum/
maximum
minimum and
maximum to determine the range of those
values. For example, if minimum and
maximum are set to 0 and 100, when the
slider/thumb is in the middle of the displayed object,
its value is 50. This value is available to the programmer
to manipulate the scrolled object.
lineIncrement
The number added or subtracted from the location
value when the user clicks on the arrows at the ends of
the scrollbar.
orientation
Determines whether the scrollbar is oriented horizontally or
vertically.
pageIncrement
The number added to or subtracted from the location value when
the user clicks in the area between the slider/thumb
and the arrows at each end of the scrollbar.
value
The integer value that represents the initial position of the
slider/thumb relative to the values of
minimum and maximum.
visiblePageSize
The initial length (in value units) of the slider/thumb.
This length usually indicates the percentage of the entire
document that can be viewed in the window that the scrollbar controls.

flow layout panelhgap
items
A dialog box that enables you to add and delete panels
from the flow layout panel and to change the names of those
panels.
labelAlignment
Sets the position (left, right, center) of the
borderLabel on the top edge of the panel.
vgap
The vertical distance (in pixels) between rows of
components. Also controls the distance between components
and the top and bottom edges of the panel.

Border Layout PanellabelAlignment
borderLabel on the top edge of the panel
useCenter
Removes or includes the center cell in the panel
useEast
Removes or includes the east cell in the panel
useNorth
Removes or includes the north cell in the panel
useSouth
Removes or includes the south cell in the panel
useWest
Removes or includes the west cell in the panel

Card Layout Panelcards
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
borderLabel on the top edge of the panel.

Tabbed Folder Panelcards
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
borderLabel on the top edge of the panel.

Labeled Baralignment
textOffsetFromEdge
Number of pixels the text is offset from the edge of the cell.
See also: