|
JavaTM 2 Platform Std. Ed. v1.4.2_16 |
||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
| Package java.applet |
| Class java.applet.Applet extends Panel implements Serializable |
serialVersionUID: -5836846270535785031l
| Serialization Methods |
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException,
HeadlessException
HeadlessException - if
GraphicsEnvironment.isHeadless() returns
true
ClassNotFoundException
IOExceptionGraphicsEnvironment.isHeadless()| Serialized Fields |
AccessibleContext accessibleContext
| Class java.applet.Applet.AccessibleApplet extends Panel.AccessibleAWTPanel implements Serializable |
| Package java.awt |
| Class java.awt.AWTError extends Error implements Serializable |
serialVersionUID: -1819846354050686206l
| Class java.awt.AWTEvent extends EventObject implements Serializable |
serialVersionUID: -1825314779160409405l
| Serialized Fields |
long bdata
int id
AWTEvent.getID(),
AWTEvent.AWTEvent(java.lang.Object, int)boolean consumed
AWTEvent.consume(),
AWTEvent.isConsumed()| Class java.awt.AWTException extends Exception implements Serializable |
serialVersionUID: -1900414231151323879l
| Class java.awt.AWTKeyStroke extends Object implements Serializable |
| Serialization Methods |
protected Object readResolve()
throws ObjectStreamException
AWTKeyStroke (or a subclass of
AWTKeyStroke) which is equal to this instance.
| Serialized Fields |
char keyChar
int keyCode
int modifiers
boolean onKeyRelease
| Class java.awt.AWTPermission extends BasicPermission implements Serializable |
serialVersionUID: 8890392402588814465l
| Class java.awt.BorderLayout extends Object implements Serializable |
serialVersionUID: -8658291919501921765l
| Serialized Fields |
int hgap
hgap.
BorderLayout.getHgap(),
BorderLayout.setHgap(int)int vgap
vgap.
BorderLayout.getVgap(),
BorderLayout.setVgap(int)Component north
#getChild(String, boolean),
BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object),
BorderLayout.getLayoutAlignmentX(java.awt.Container),
BorderLayout.getLayoutAlignmentY(java.awt.Container),
BorderLayout.removeLayoutComponent(java.awt.Component)Component west
#getChild(String, boolean),
BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object),
BorderLayout.getLayoutAlignmentX(java.awt.Container),
BorderLayout.getLayoutAlignmentY(java.awt.Container),
BorderLayout.removeLayoutComponent(java.awt.Component)Component east
#getChild(String, boolean),
BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object),
BorderLayout.getLayoutAlignmentX(java.awt.Container),
BorderLayout.getLayoutAlignmentY(java.awt.Container),
BorderLayout.removeLayoutComponent(java.awt.Component)Component south
#getChild(String, boolean),
BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object),
BorderLayout.getLayoutAlignmentX(java.awt.Container),
BorderLayout.getLayoutAlignmentY(java.awt.Container),
BorderLayout.removeLayoutComponent(java.awt.Component)Component center
#getChild(String, boolean),
BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object),
BorderLayout.getLayoutAlignmentX(java.awt.Container),
BorderLayout.getLayoutAlignmentY(java.awt.Container),
BorderLayout.removeLayoutComponent(java.awt.Component)Component firstLine
NORTH
and BEFORE_FIRST_LINE constants in a container whose
orientation is LEFT_TO_RIGHT, only the
BEFORE_FIRST_LINE will be layed out.
This will be the same for lastLine, firstItem, lastItem.
Component lastLine
Component firstItem
Component lastItem
| Class java.awt.Button extends Component implements Serializable |
serialVersionUID: -8774683716313001058l
| Serialization Methods |
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException,
HeadlessException
ObjectInputStream and if
it isn't null adds a listener to
receive action events fired by the button.
Unrecognized keys or values will be ignored.
HeadlessException - if
GraphicsEnvironment.isHeadless returns
true
ClassNotFoundException
IOExceptionButton.removeActionListener(ActionListener),
Button.addActionListener(ActionListener),
GraphicsEnvironment.isHeadless(),
#writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s)
throws IOException
ActionListeners
as optional data. The non-serializable
ActionListeners are detected and
no attempt is made to serialize them.
null terminated sequence of 0 or
more pairs: the pair consists of a String
and an Object; the String
indicates the type of object and is one of the following:
actionListenerK indicating an
ActionListener object
IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component#actionListenerK,
#readObject(ObjectInputStream)| Serialized Fields |
String label
String actionCommand
int buttonSerializedDataVersion
| Class java.awt.Button.AccessibleAWTButton extends Component.AccessibleAWTComponent implements Serializable |
| Class java.awt.Canvas extends Component implements Serializable |
serialVersionUID: -2284879212465893870l
| Class java.awt.Canvas.AccessibleAWTCanvas extends Component.AccessibleAWTComponent implements Serializable |
| Class java.awt.CardLayout extends Object implements Serializable |
serialVersionUID: -4328196481005934313l
| Serialization Methods |
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
private void writeObject(ObjectOutputStream s)
throws IOException
| Serialized Fields |
int currentCard
int hgap
Hashtable tab
Vector vector
int vgap
| Class java.awt.Checkbox extends Component implements Serializable |
serialVersionUID: 7270714317450821763l
| Serialization Methods |
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException,
HeadlessException
ObjectInputStream and if it
isn't null adds a listener to receive
item events fired by the Checkbox.
Unrecognized keys or values will be ignored.
HeadlessException - if
GraphicsEnvironment.isHeadless returns
true
ClassNotFoundException
IOExceptionCheckbox.removeItemListener(ItemListener),
Checkbox.addItemListener(ItemListener),
GraphicsEnvironment.isHeadless(),
#writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s)
throws IOException
ItemListeners
as optional data. The non-serializable
ItemListeners are detected and
no attempt is made to serialize them.
null terminated sequence of 0
or more pairs; the pair consists of a String
and an Object; the String indicates
the type of object and is one of the following:
itemListenerK indicating an
ItemListener object
IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component#itemListenerK,
#readObject(ObjectInputStream)| Serialized Fields |
String label
Checkbox.getLabel(),
#setLabel(label)boolean state
Checkbox.
Checkbox.getState(),
#setState(state)CheckboxGroup group
#getCheckBoxGroup(),
#setCheckBoxGroup(CheckBoxGroup)int checkboxSerializedDataVersion
| Class java.awt.Checkbox.AccessibleAWTCheckbox extends Component.AccessibleAWTComponent implements Serializable |
| Class java.awt.CheckboxGroup extends Object implements Serializable |
serialVersionUID: 3729780091441768983l
| Serialized Fields |
Checkbox selectedCheckbox
CheckboxGroup.getCurrent(),
CheckboxGroup.setCurrent(Checkbox)| Class java.awt.CheckboxMenuItem extends MenuItem implements Serializable |
serialVersionUID: 6190621106981774043l
| Serialization Methods |
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
private void writeObject(ObjectOutputStream s)
throws IOException
ItemListeners
as optional data. The non-serializable
ItemListeners are detected and
no attempt is made to serialize them.
null terminated sequence of
0 or more pairs; the pair consists of a String
and an Object; the String indicates
the type of object and is one of the following:
itemListenerK indicating an
ItemListener object
IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component#itemListenerK,
#readObject(ObjectInputStream)| Serialized Fields |
boolean state
CheckboxMenuItem.getState(),
CheckboxMenuItem.setState(boolean)int checkboxMenuItemSerializedDataVersion
| Class java.awt.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem extends MenuItem.AccessibleAWTMenuItem implements Serializable |
| Class java.awt.Choice extends Component implements Serializable |
serialVersionUID: -4075310674757313071l
| Serialization Methods |
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException,
HeadlessException
ObjectInputStream and if it
isn't null adds a listener to receive
item events fired by the Choice item.
Unrecognized keys or values will be ignored.
HeadlessException - if
GraphicsEnvironment.isHeadless returns
true
ClassNotFoundException
IOExceptionChoice.removeItemListener(ItemListener),
Choice.addItemListener(ItemListener),
GraphicsEnvironment.isHeadless(),
#writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s)
throws IOException
ItemListeners
as optional data. The non-serializable
ItemListeners are detected and
no attempt is made to serialize them.
null terminated sequence of 0
or more pairs; the pair consists of a String
and an Object; the String indicates
the type of object and is one of the following:
itemListenerK indicating an
ItemListener object
IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
java.awt.Component#itemListenerK,
#readObject(ObjectInputStream)| Serialized Fields |
Vector pItems
Choice.
This can be a null value.
Choice.add(String),
Choice.addItem(String),
Choice.getItem(int),
Choice.getItemCount(),
Choice.insert(String, int),
Choice.remove(String)int selectedIndex
Choice
or -1 if nothing is selected.
Choice.getSelectedItem(),
Choice.select(int)int choiceSerializedDataVersion
| Class java.awt.Choice.AccessibleAWTChoice extends Component.AccessibleAWTComponent implements Serializable |
| Class java.awt.Color extends Object implements Serializable |
serialVersionUID: 118526816881161077l
| Serialized Fields |
int value
Color.getRGB()float[] frgbvalue
ColorSpace as
float components (no alpha).
If null after object construction, this must be an
sRGB color constructed with 8-bit precision, so compute from the
int color value.
Color.getRGBColorComponents(float[]),
Color.getRGBComponents(float[])float[] fvalue
ColorSpace as
float components (no alpha).
If null after object construction, this must be an
sRGB color constructed with 8-bit precision, so compute from the
int color value.
Color.getRGBColorComponents(float[]),
Color.getRGBComponents(float[])float falpha
float component.
If frgbvalue is null, this is not valid
data, so compute from the int color value.
Color.getRGBComponents(float[]),
Color.getComponents(float[])ColorSpace cs
ColorSpace. If null, then it's
default is sRGB.
Color.getColor(java.lang.String),
Color.getColorSpace(),
Color.getColorComponents(float[])| Class java.awt.Component extends Object implements Serializable |
serialVersionUID: -7644114512714619750l
| Serialization Methods |
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
ObjectInputStream and if it isn't
null adds a listener to receive a variety
of events fired by the component.
Unrecognized keys or values will be ignored.
ClassNotFoundException
IOException#writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s)
throws IOException
null terminated sequence of
0 or more pairs; the pair consists of a String
and an Object; the String indicates
the type of object and is one of the following (as of 1.4):
componentListenerK indicating an
ComponentListener object;
focusListenerK indicating an
FocusListener object;
keyListenerK indicating an
KeyListener object;
mouseListenerK indicating an
MouseListener object;
mouseMotionListenerK indicating an
MouseMotionListener object;
inputListenerK indicating an
InputListener object;
hierarchyListenerK indicating an
HierarchyListener object;
hierarchyBoundsListenerK indicating an
HierarchyBoundsListener object;
mouseWheelListenerK indicating an
MouseWheelListener objectan optional ComponentOrientation
(after inputMethodListener, as of 1.2)
IOExceptionAWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener),
#componentListenerK,
#focusListenerK,
#keyListenerK,
#mouseListenerK,
#mouseMotionListenerK,
#inputListenerK,
#hierarchyListenerK,
#hierarchyBoundsListenerK,
#mouseWheelListenerK,
#readObject(ObjectInputStream)| Serialized Fields |
int x
Component.getLocation()int y
Component.getLocation()int width
Component.getSize()int height
Component.getSize()Color foreground
foreground can be null.
Component.getForeground(),
Component.setForeground(java.awt.Color)Color background
background can be null.
Component.getBackground(),
Component.setBackground(java.awt.Color)Font font
font can be null.
Component.getFont(),
Component.setFont(java.awt.Font)Font peerFont
null if no peer exists.)
Cursor cursor
null.
Component.getCursor(),
Component.setCursor(java.awt.Cursor)Locale locale
Component.getLocale(),
Component.setLocale(java.util.Locale)boolean ignoreRepaint
Component.setIgnoreRepaint(boolean),
Component.getIgnoreRepaint()boolean visible
Component.isVisible(),
Component.setVisible(boolean)boolean enabled
Component.isEnabled(),
Component.setEnabled(boolean)boolean valid
Component.isValid(),
Component.validate(),
Component.invalidate()DropTarget dropTarget
DropTarget associated with this component.
Component.setDropTarget(java.awt.dnd.DropTarget),
Component.getDropTarget()Vector popups
Component.add(java.awt.PopupMenu)String name
null.
Component.getName(),
Component.setName(String)boolean nameExplicitlySet
nameExplicitlySet will
be false if the name has not been set and
true if it has.
Component.getName(),
Component.setName(String)boolean focusable
Component.setFocusable(boolean),
Component.isFocusable()int isFocusTraversableOverridden
Set[] focusTraversalKeys
Component.setFocusTraversalKeys(int, java.util.Set),
Component.getFocusTraversalKeys(int)boolean focusTraversalKeysEnabled
Component.setFocusTraversalKeysEnabled(boolean),
Component.getFocusTraversalKeysEnabled()Dimension minSize
Dimension prefSize
boolean newEventsOnly
newEventsOnly will be true if the event is
one of the event types enabled for the component.
It will then allow for normal processing to
continue. If it is false the event is passed
to the component's parent and up the ancestor
tree until the event has been consumed.
Component.dispatchEvent(java.awt.AWTEvent)long eventMask
eventMask is ONLY set by subclasses via
enableEvents.
The mask should NOT be set when listeners are registered
so that we can distinguish the difference between when
listeners request events and subclasses request them.
One bit is used to indicate whether input methods are
enabled; this bit is set by enableInputMethods and is
on by default.
Component.enableInputMethods(boolean),
AWTEventPropertyChangeSupport changeSupport
PropertyChangeListeners have been registered,
the changeSupport field describes them.
Component.addPropertyChangeListener(java.beans.PropertyChangeListener),
Component.removePropertyChangeListener(java.beans.PropertyChangeListener),
Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)boolean isPacked
int componentSerializedDataVersion
AccessibleContext accessibleContext
| Class java.awt.Component.AccessibleAWTComponent extends AccessibleContext implements Serializable |
| Serialized Fields |
ComponentListener accessibleAWTComponentHandler
FocusListener accessibleAWTFocusHandler
| Class java.awt.ComponentOrientation extends Object implements Serializable |
| Serialized Fields |
int orientation
| Class java.awt.Container extends Component implements Serializable |
serialVersionUID: 4613797578919906343l
| Serialization Methods |
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
Container from the specified
ObjectInputStream.
ClassNotFoundException
IOExceptionContainer.addContainerListener(java.awt.event.ContainerListener),
#writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s)
throws IOException
Container to the specified
ObjectOutputStream.
null is written.
null terminated sequence of 0 or more pairs;
the pair consists of a String and Object;
the String indicates the type of object and
is one of the following:
containerListenerK indicating an
ContainerListener object;
the Container's FocusTraversalPolicy,
or null
IOExceptionAWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener),
Container#containerListenerK,
#readObject(ObjectInputStream)| Serialized Fields |
int ncomponents
Container.getComponent(int),
Container.getComponents(),
Container.getComponentCount()Component[] component
Container.add(java.awt.Component),
Container.getComponents()LayoutManager layoutMgr
Container.doLayout(),
Container.setLayout(java.awt.LayoutManager),
Container.getLayout()LightweightDispatcher dispatcher
Dimension maxSize
boolean focusCycleRoot
Container.setFocusCycleRoot(boolean),
Container.isFocusCycleRoot(java.awt.Container)int containerSerializedDataVersion
| Class java.awt.Container.AccessibleAWTContainer extends Component.AccessibleAWTComponent implements Serializable |
| Serialized Fields |
ContainerListener accessibleContainerHandler
| Class java.awt.ContainerOrderFocusTraversalPolicy extends FocusTraversalPolicy implements Serializable |
| Serialized Fields |
boolean implicitDownCycleTraversal
| Class java.awt.Cursor extends Object implements Serializable |
serialVersionUID: 8028237497568985504l
| Serialized Fields |
int type
DEFAULT_CURSOR.
Cursor.getType()String name
Cursor.getName()| Class java.awt.DefaultFocusTraversalPolicy extends ContainerOrderFocusTraversalPolicy implements Serializable |
| Class java.awt.Dialog extends Window implements Serializable |
serialVersionUID: 5920926903803293709l
| Serialized Fields |
boolean resizable
Dialog.setResizable(boolean)boolean undecorated
undecorated will be true if the dialog is
undecorated, otherwise it will be false.
Dialog.setUndecorated(boolean),
Dialog.isUndecorated(),
Component.isDisplayable()boolean modal
Dialog.isModal(),
Dialog.setModal(boolean)String title
Dialog.getTitle(),
Dialog.setTitle(String)| Class java.awt.Dialog.AccessibleAWTDialog extends Window.AccessibleAWTWindow implements Serializable |
| Class java.awt.Dimension extends Dimension2D implements Serializable |
serialVersionUID: 4723952579491349524l
| Serialized Fields |
int width
Dimension.getSize(),
Dimension.setSize(double, double)int height
Dimension.getSize(),
Dimension.setSize(double, double)| Class java.awt.Event extends Object implements Serializable |
serialVersionUID: 5488922509400504703l
| Serialized Fields |
Object target
EventObject.getSource()long when
InputEvent.getWhen()int id
Event variables are relevant for the event.
This has been replaced by AWTEvent.getID()
AWTEvent.getID()int x
MouseEvent.getX()int y
MouseEvent.getY()int key
KeyEvent.getKeyCode()int modifiers
InputEvent.getModifiers()int clickCount
MOUSE_DOWN events, this field indicates the
number of consecutive clicks. For other events, its value is
0.
This field has been replaced by MouseEvent.getClickCount().
MouseEvent.getClickCount().Object arg
arg has been replaced by event specific property.
Event evt
EventQueueboolean consumed
#isConsumed()| Class java.awt.FileDialog extends Dialog implements Serializable |
serialVersionUID: 5035145889651310422l
| Serialization Methods |
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
ObjectInputStream and performs
a backwards compatibility check by converting
either a dir or a file
equal to an empty string to null.
| Serialized Fields |
int mode
String dir
String file
FilenameFilter filter
| Class java.awt.FlowLayout extends Object implements Serializable |
serialVersionUID: -7262534875583282631l
| Serialization Methods |
private void readObject(ObjectInputStream stream)
throws IOException,
ClassNotFoundException
| Serialized Fields |
int align
align is the property that determines
how each row distributes empty space.
It can be one of the following values:
LEFT
RIGHT
CENTER
LEADING
TRAILING
FlowLayout.getAlignment(),
FlowLayout.setAlignment(int)int newAlign
newAlign is the property that determines
how each row distributes empty space for the Java 2 platform,
v1.2 and greater.
It can be one of the following three values:
LEFT
RIGHT
CENTER
LEADING
TRAILING
FlowLayout.getAlignment(),
FlowLayout.setAlignment(int)int hgap
FlowLayout.getHgap(),
FlowLayout.setHgap(int)int vgap
FlowLayout.getHgap(),
FlowLayout.setHgap(int)int serialVersionOnStream
currentSerialVersion
which is bein used. It will be one of two values :
0 versions before Java 2 platform v1.2..
1 versions after Java 2 platform v1.2..
| Class java.awt.Font extends Object implements Serializable |
serialVersionUID: -4206021311591459213l
| Serialization Methods |
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException
ObjectInputStream.
Unrecognized keys or values will be ignored.
ClassNotFoundException
IOException#writeObject(java.io.ObjectOutputStream)
private void writeObject(ObjectOutputStream s)
throws ClassNotFoundException,
IOException
ClassNotFoundException
IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
#readObject(java.io.ObjectInputStream)| Serialized Fields |
Hashtable fRequestedAttributes
Font.getAttributes()String name
Font, as passed to the
constructor.
Font.getName()int style
Font, as passed to the constructor.
This style can be PLAIN, BOLD, ITALIC, or BOLD+ITALIC.
Font.getStyle()int size
Font, rounded to integer.
Font.getSize()float pointSize
Font in float.
Font.getSize(),
Font.getSize2D()int fontSerializedDataVersion
Font Serializable Data Form.
| Class java.awt.FontFormatException extends Exception implements Serializable |
| Class java.awt.FontMetrics extends Object implements Serializable |
serialVersionUID: 1681126225205050147l
| Serialized Fields |
Font font
Font from which the font metrics are
created.
This cannot be null.
FontMetrics.getFont()| Class java.awt.Frame extends Window implements Serializable |
serialVersionUID: 2673458971256075116l
| Serialization Methods |
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException,
HeadlessException
ObjectInputStream. Tries
to read an Icon, which is optional
data available as of 1.4. If an Icon
is not available, but anything other than an EOF
is detected, an OptionalDataException
will be thrown..
Unrecognized keys or values will be ignored.
OptionalDataException - if an Icon
is not available, but anything other than an EOF
is detected
HeadlessException - if
GraphicsEnvironment.isHeadless returns
true
ClassNotFoundException
IOExceptionGraphicsEnvironment.isHeadless(),
Icon,
#writeObject(ObjectOutputStream)
private void writeObject(ObjectOutputStream s)
throws IOException
Icon, which is
available as of 1.4.
Icon
IOExceptionIcon,
#readObject(ObjectInputStream)| Serialized Fields |
Rectangle maximizedBounds
Frame.setMaximizedBounds(Rectangle),
Frame.getMaximizedBounds()String title
title can be null and if
this is the case the title = "".
Frame.getTitle(),
Frame.setTitle(String)MenuBar menuBar
menuBar = null
the frame will not have a menubar.
Frame.getMenuBar(),
Frame.setMenuBar(MenuBar)boolean resizable
resizable will be true if the frame is
resizable, otherwise it will be false.
Frame.isResizable()boolean undecorated
undecorated will be true if the frame is
undecorated, otherwise it will be false.
Frame.setUndecorated(boolean),
Frame.isUndecorated(),
Component.isDisplayable()boolean mbManagement
mbManagement is only used by the Motif implementation.
int state
Vector ownedWindows
int frameSerializedDataVersion
Frame's Serialized Data Version.
| Class java.awt.Frame.AccessibleAWTFrame extends Window.AccessibleAWTWindow implements Serializable |
| Class java.awt.GraphicsConfigTemplate extends Object implements Serializable |
| Class java.awt.GridBagConstraints extends Object implements Serializable |
serialVersionUID: -1000070633030801713l
| Serialized Fields |
int gridx
gridx=0.
The leading edge of a component's display area is its left edge for
a horizontal, left-to-right container and its right edge for a
horizontal, right-to-left container.
The value
RELATIVE specifies that the component be placed
immediately following the component that was added to the container
just before this component was added.
The default value is RELATIVE.
gridx should be a non-negative value.
GridBagConstraints.clone(),
GridBagConstraints.gridy,
ComponentOrientationint gridy
gridy=0. The value
RELATIVE specifies that the component be placed just
below the component that was added to the container just before
this component was added.
The default value is RELATIVE.
gridy should be a non-negative value.
GridBagConstraints.clone(),
GridBagConstraints.gridxint gridwidth
Use REMAINDER to specify that the component be the
last one in its row. Use RELATIVE to specify that the
component be the next-to-last one in its row.
gridwidth should be non-negative and the default
value is 1.
GridBagConstraints.clone(),
GridBagConstraints.gridheightint gridheight
Use REMAINDER to specify that the component be the
last one in its column. Use RELATIVE to specify that
the component be the next-to-last one in its column.
gridheight should be a non-negative value and the
default value is 1.
GridBagConstraints.clone(),
GridBagConstraints.gridwidthdouble weightx
The grid bag layout manager calculates the weight of a column to
be the maximum weightx of all the components in a
column. If the resulting layout is smaller horizontally than the area
it needs to fill, the extra space is distributed to each column in
proportion to its weight. A column that has a weight of zero receives
no extra space.
If all the weights are zero, all the extra space appears between the grids of the cell and the left and right edges.
The default value of this field is 0.
weightx should be a non-negative value.
GridBagConstraints.clone(),
GridBagConstraints.weightydouble weighty
The grid bag layout manager calculates the weight of a row to be
the maximum weighty of all the components in a row.
If the resulting layout is smaller vertically than the area it
needs to fill, the extra space is distributed to each row in
proportion to its weight. A row that has a weight of zero receives no
extra space.
If all the weights are zero, all the extra space appears between the grids of the cell and the top and bottom edges.
The default value of this field is 0.
weighty should be a non-negative value.
GridBagConstraints.clone(),
GridBagConstraints.weightxint anchor
There are two kinds of possible values: relative and
absolute. Relative values are interpreted relative to the container's
component orientation property while absolute values are not. The absolute
values are:
CENTER, NORTH, NORTHEAST,
EAST, SOUTHEAST, SOUTH,
SOUTHWEST, WEST, and NORTHWEST.
The relative values are: PAGE_START, PAGE_END,
LINE_START, LINE_END,
FIRST_LINE_START, FIRST_LINE_END,
LAST_LINE_START and LAST_LINE_END.
The default value is CENTER.
GridBagConstraints.clone(),
ComponentOrientationint fill
The following values are valid for fill:
NONE: Do not resize the component.
HORIZONTAL: Make the component wide enough to fill
its display area horizontally, but do not change its height.
VERTICAL: Make the component tall enough to fill its
display area vertically, but do not change its width.
BOTH: Make the component fill its display area
entirely.
The default value is NONE.
GridBagConstraints.clone()Insets insets
The default value is new Insets(0, 0, 0, 0).
GridBagConstraints.clone()int ipadx
(ipadx * 2) pixels.
The default value is 0.
GridBagConstraints.clone(),
GridBagConstraints.ipadyint ipady
(ipady * 2) pixels.
The default value is 0.
GridBagConstraints.clone(),
GridBagConstraints.ipadxint tempX
int tempY
int tempWidth
int tempHeight
int minWidth
ipady, where the default will be 0.
GridBagConstraints.ipadyint minHeight
ipadx, where the default will be 0.
GridBagConstraints.ipadx| Class java.awt.GridBagLayout extends Object implements Serializable |
serialVersionUID: 8838754796412211005l
| Serialized Fields |
Hashtable comptable
comptable are the components and the
values are the instances of GridBagConstraints.
GridBagConstraintsGridBagConstraints defaultConstraints
defaultConstraints.
GridBagLayout.getConstraints(Component),
GridBagLayout.setConstraints(Component, GridBagConstraints),
GridBagLayout.lookupConstraints(Component)GridBagLayoutInfo layoutInfo
layoutInfo is null
this indicates that there are no components in
the gridbag or if there are components, they have
not yet been validated.
GridBagLayout.getLayoutInfo(Container, int)int[] columnWidths
null the values are
applied to the gridbag after all of the minimum columns
widths have been calculated.
If columnWidths has more elements than the number of
columns, columns are added to the gridbag to match
the number of elements in columnWidth.
GridBagLayout.getLayoutDimensions()int[] rowHeights
rowHeights has more elements than the number of
rows, rowa are added to the gridbag to match
the number of elements in rowHeights.
GridBagLayout.getLayoutDimensions()double[] columnWeights
null the values are
applied to the gridbag after all of the columns
weights have been calculated.
If columnWeights[i] > weight for column i, then
column i is assigned the weight in columnWeights[i].
If columnWeights has more elements than the number
of columns, the excess elements are ignored - they do
not cause more columns to be created.
double[] rowWeights
rowWeights[i] > weight for row i, then
row i is assigned the weight in rowWeights[i].
If rowWeights has more elements than the number
of rows, the excess elements are ignored - they do
not cause more rows to be created.
| Class java.awt.GridLayout extends Object implements Serializable |
| Serialized Fields |
int hgap
GridLayout.getHgap(),
GridLayout.setHgap(int)int vgap
GridLayout.getVgap(),
GridLayout.setVgap(int)int rows
GridLayout.getRows(),
GridLayout.setRows(int)int cols
GridLayout.getColumns(),
GridLayout.setColumns(int)| Class java.awt.HeadlessException extends UnsupportedOperationException implements Serializable |
| Class java.awt.IllegalComponentStateException extends IllegalStateException implements Serializable |
serialVersionUID: -1889339587208144238l
| Class java.awt.Insets extends Object implements Serializable |
serialVersionUID: -2272572637695466749l
| Serialized Fields |
int top
Insets.clone()int left
Insets.clone()int bottom
Insets.clone()int right
Insets.clone()| Class java.awt.Label extends Component implements Serializable |
serialVersionUID: 3094126758329070636l
| Serialization Methods |
private void readObject(ObjectInputStream s)
throws ClassNotFoundException,
IOException,
HeadlessException
HeadlessException - if
GraphicsEnvironment.isHeadless() returns
true
ClassNotFoundException
IOExceptionGraphicsEnvironment.isHeadless()