AWTEvent.consume(),
AWTEvent.isConsumed()hgap.vgap.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.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
truejava.lang.ClassNotFoundExceptionjava.io.IOExceptionButton.removeActionListener(ActionListener),
Button.addActionListener(ActionListener),
GraphicsEnvironment.isHeadless(),
Button.writeObject(ObjectOutputStream)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 objectjava.io.IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
Component.actionListenerK,
Button.readObject(ObjectInputStream)Button.getLabel(),
Button.setLabel(String)java.lang.ClassNotFoundExceptionjava.io.IOExceptionjava.io.IOExceptionObjectInputStream 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
truejava.lang.ClassNotFoundExceptionjava.io.IOExceptionCheckbox.removeItemListener(ItemListener),
Checkbox.addItemListener(ItemListener),
GraphicsEnvironment.isHeadless(),
Checkbox.writeObject(ObjectOutputStream)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 objectjava.io.IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
Component.itemListenerK,
Checkbox.readObject(ObjectInputStream)Checkbox.getLabel(),
Checkbox.setLabel(String)Checkbox.java.lang.ClassNotFoundExceptionjava.io.IOExceptionItemListeners
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 objectjava.io.IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
Component.itemListenerK,
CheckboxMenuItem.readObject(ObjectInputStream)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
truejava.lang.ClassNotFoundExceptionjava.io.IOExceptionChoice.removeItemListener(ItemListener),
Choice.addItemListener(ItemListener),
GraphicsEnvironment.isHeadless(),
Choice.writeObject(ObjectOutputStream)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 objectjava.io.IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
Component.itemListenerK,
Choice.readObject(ObjectInputStream)Choice.
This can be a null value.Choice
or -1 if nothing is selected.Choice.getSelectedItem(),
Choice.select(int)Color.getRGB()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.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.float component.
If frgbvalue is null, this is not valid
data, so compute from the int color value.ColorSpace. If null, then it's
default is sRGB.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.java.lang.ClassNotFoundExceptionjava.io.IOExceptionComponent.writeObject(ObjectOutputStream)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;
inputMethodListenerK indicating an
InputMethodListener object;
hierarchyListenerK indicating an
HierarchyListener object;
hierarchyBoundsListenerK indicating an
HierarchyBoundsListener object;
mouseWheelListenerK indicating an
MouseWheelListener object, an optional ComponentOrientation
(after inputMethodListener, as of 1.2)java.io.IOExceptionAWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener),
Component.componentListenerK,
Component.focusListenerK,
Component.keyListenerK,
Component.mouseListenerK,
Component.mouseMotionListenerK,
Component.inputMethodListenerK,
Component.hierarchyListenerK,
Component.hierarchyBoundsListenerK,
Component.mouseWheelListenerK,
Component.readObject(ObjectInputStream)Component.getLocation()Component.getLocation()Component.getSize()Component.getSize()foreground can be null.background can be null.font can be null.null if no peer exists.)null.Component.setIgnoreRepaint(boolean),
Component.getIgnoreRepaint()DropTarget associated with this component.Component.setDropTarget(java.awt.dnd.DropTarget),
Component.getDropTarget()Component.add(java.awt.PopupMenu)null.Component.getName(),
Component.setName(String)nameExplicitlySet will
be false if the name has not been set and
true if it has.Component.getName(),
Component.setName(String)Component.setFocusable(boolean),
Component.isFocusable()Component.setFocusTraversalKeysEnabled(boolean),
Component.getFocusTraversalKeysEnabled()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.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.PropertyChangeListeners have been registered,
the changeSupport field describes them.Container from the specified
ObjectInputStream.
java.lang.ClassNotFoundExceptionjava.io.IOExceptionContainer.addContainerListener(java.awt.event.ContainerListener),
Container.writeObject(ObjectOutputStream)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 nulljava.io.IOExceptionAWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener),
Component.containerListenerK,
Container.readObject(ObjectInputStream)DEFAULT_CURSOR.Cursor.getType()Cursor.getName()java.lang.ClassNotFoundExceptionjava.io.IOExceptionHeadlessExceptionDialog.setResizable(boolean)undecorated will be true if the dialog is
undecorated, otherwise it will be false.Dialog.setUndecorated(boolean),
Dialog.isUndecorated(),
Component.isDisplayable()ModalityType enum instead.ModalityType.MODELESS, it blocks all
user input to some application top-level windows.Dialog.ModalityType,
Dialog.getModalityType(),
Dialog.setModalityType(java.awt.Dialog.ModalityType)Dialog.getTitle(),
Dialog.setTitle(String)Dimension.getSize(),
Dimension.setSize(double, double)Dimension.getSize(),
Dimension.setSize(double, double)EventObject.getSource()InputEvent.getWhen()Event variables are relevant for the event.
This has been replaced by AWTEvent.getID()AWTEvent.getID()MouseEvent.getX()MouseEvent.getY()KeyEvent.getKeyCode()InputEvent.getModifiers()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().arg has been replaced by event specific property.EventQueueEvent.isConsumed()ObjectInputStream and performs
a backwards compatibility check by converting
either a dir or a file
equal to an empty string to null.java.lang.ClassNotFoundExceptionjava.io.IOExceptionFileDialog.getFiles()FileDialog.setMultipleMode(boolean),
FileDialog.isMultipleMode()java.io.IOExceptionjava.lang.ClassNotFoundExceptionalign is the property that determines
how each row distributes empty space.
It can be one of the following values:
LEFT
RIGHT
CENTER
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)Container.FlowLayout.getHgap(),
FlowLayout.setHgap(int)Container.FlowLayout.getHgap(),
FlowLayout.setHgap(int)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..ObjectInputStream.
Unrecognized keys or values will be ignored.java.lang.ClassNotFoundExceptionjava.io.IOExceptionFont.writeObject(java.io.ObjectOutputStream)java.lang.ClassNotFoundExceptionjava.io.IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
Font.readObject(java.io.ObjectInputStream)Font.getAttributes()Font, as passed to the
constructor.Font.getName()Font, as passed to the constructor.
This style can be PLAIN, BOLD, ITALIC, or BOLD+ITALIC.Font.getStyle()Font, rounded to integer.Font.getSize()Font in float.Font.getSize(),
Font.getSize2D()Font Serializable Data Form.Font from which the font metrics are
created.
This cannot be null.FontMetrics.getFont()ObjectInputStream. Tries
to read an icon Image, which is optional
data available as of 1.4. If an icon Image
is not available, but anything other than an EOF
is detected, an OptionalDataException
will be thrown.
Unrecognized keys or values will be ignored.java.io.OptionalDataException - if an icon Image
is not available, but anything other than an EOF
is detectedHeadlessException - if
GraphicsEnvironment.isHeadless returns
truejava.lang.ClassNotFoundExceptionjava.io.IOExceptionGraphicsEnvironment.isHeadless(),
Image,
Frame.getIconImage(),
Frame.setIconImage(Image),
Frame.writeObject(ObjectOutputStream)Image, which is
available as of 1.4.Imagejava.io.IOExceptionImage,
Frame.getIconImage(),
Frame.setIconImage(Image),
Frame.readObject(ObjectInputStream)Frame.setMaximizedBounds(Rectangle),
Frame.getMaximizedBounds()title can be null and if
this is the case the title = "".Frame.getTitle(),
Frame.setTitle(String)menuBar = null
the frame will not have a menubar.Frame.getMenuBar(),
Frame.setMenuBar(MenuBar)resizable will be true if the frame is
resizable, otherwise it will be false.Frame.isResizable()undecorated will be true if the frame is
undecorated, otherwise it will be false.Frame.setUndecorated(boolean),
Frame.isUndecorated(),
Component.isDisplayable()mbManagement is only used by the Motif implementation.Frame's Serialized Data Version.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.
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.
Use REMAINDER to specify that the component's
display area will be from gridx to the last
cell in the row.
Use RELATIVE to specify that the component's
display area will be from gridx to the next
to the last one in its row.
gridwidth should be non-negative and the default
value is 1.
Use REMAINDER to specify that the component's
display area will be from gridy to the last
cell in the column.
Use RELATIVE to specify that the component's
display area will be from gridy to the next
to the last one in its column.
gridheight should be a non-negative value and the
default value is 1.
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.
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.
There are three kinds of possible values: orientation
relative, baseline relative and absolute. Orientation relative
values are interpreted relative to the container's component
orientation property, baseline relative values are interpreted
relative to the baseline and absolute values are not. The
absolute values are:
CENTER, NORTH, NORTHEAST,
EAST, SOUTHEAST, SOUTH,
SOUTHWEST, WEST, and NORTHWEST.
The orientation 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
baseline relative values are:
BASELINE, BASELINE_LEADING,
BASELINE_TRAILING,
ABOVE_BASELINE, ABOVE_BASELINE_LEADING,
ABOVE_BASELINE_TRAILING,
BELOW_BASELINE, BELOW_BASELINE_LEADING,
and BELOW_BASELINE_TRAILING.
The default value is CENTER.
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()
The default value is new Insets(0, 0, 0, 0).
GridBagConstraints.clone()ipadx pixels.
The default value is 0.
ipady pixels.
The default value is 0.
ipady, where the default will be 0.GridBagConstraints.ipadyipadx, where the default will be 0.GridBagConstraints.ipadxcomptable are the components and the
values are the instances of GridBagConstraints.GridBagConstraintsdefaultConstraints.layoutInfo is null
this indicates that there are no components in
the gridbag or if there are components, they have
not yet been validated.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()null the values are
applied to the gridbag after all of the minimum row
heights have been calculated.
If 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()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.null the values are
applied to the gridbag after all of the rows
weights have been calculated.
If 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.adjustForGravity.GridLayout.getHgap(),
GridLayout.setHgap(int)GridLayout.getVgap(),
GridLayout.setVgap(int)GridLayout.getRows(),
GridLayout.setRows(int)Insets.clone()Insets.clone()Insets.clone()Insets.clone()HeadlessException - if
GraphicsEnvironment.isHeadless() returns
truejava.lang.ClassNotFoundExceptionjava.io.IOExceptionGraphicsEnvironment.isHeadless()Label.getText(),
Label.setText(String)Label.getAlignment(),
Label.setAlignment(int)ObjectInputStream and if it
isn't null adds a listener to receive
both item events and action events (as specified
by the key stored in the stream) fired by the
List.
Unrecognized keys or values will be ignored.HeadlessException - if
GraphicsEnvironment.isHeadless returns
truejava.lang.ClassNotFoundExceptionjava.io.IOExceptionList.removeItemListener(ItemListener),
List.addItemListener(ItemListener),
GraphicsEnvironment.isHeadless(),
List.writeObject(ObjectOutputStream)ItemListeners
and ActionListeners as optional data.
The non-serializable listeners 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;
actionListenerK indicating an
ActionListener objectjava.io.IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
Component.itemListenerK,
Component.actionListenerK,
List.readObject(ObjectInputStream)List.addItem(String),
List.getItem(int)List Component. It is specified only once, and
that is when the list component is actually
created. It will never change.List.getRows()multipleMode is a variable that will
be set to true if a list component is to be set to
multiple selection mode, that is where the user can
select more than one item in a list at one time.
multipleMode will be set to false if the
list component is set to single selection, that is where
the user can only select one item on the list at any
one time.selected is an array that will contain
the indices of items that have been selected.List.makeVisible(int)List component's
Serialized Data Version.Component that will be
tracked by a media tracker where the image will
eventually be drawn.MediaTracker.MediaTracker(Component)Images that is being
tracked by the MediaTracker.ObjectInputStream.
Unrecognized keys or values will be ignored.HeadlessException - if
GraphicsEnvironment.isHeadless returns
truejava.io.IOExceptionjava.lang.ClassNotFoundExceptionGraphicsEnvironment.isHeadless(),
Menu.writeObject(ObjectOutputStream)java.io.IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
Menu.readObject(ObjectInputStream)Menu.countItems()true if the menu has the tear off
property and it will be set to false
if it does not.
A torn off menu can be deleted by a user when
it is no longer needed.Menu.isTearOff()true
if the Menu in question is actually a help
menu. Otherwise it will be set to
false.ObjectInputStream.
Unrecognized keys or values will be ignored.HeadlessException - if
GraphicsEnvironment.isHeadless returns
truejava.lang.ClassNotFoundExceptionjava.io.IOExceptionGraphicsEnvironment.isHeadless(),
MenuBar.writeObject(java.io.ObjectOutputStream)java.lang.ClassNotFoundExceptionjava.io.IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
MenuBar.readObject(java.io.ObjectInputStream)MenuBar.countMenus()HeadlessException - if
GraphicsEnvironment.isHeadless returns
truejava.lang.ClassNotFoundExceptionjava.io.IOExceptionGraphicsEnvironment.isHeadless()null at which point a default will be used.
This defaults to null.null.true the name will be set explicitly.
This defaults to false.MenuComponent.setName(String)false.ObjectInputStream and if it
isn't null adds a listener to receive
action events fired by the Menu Item.
Unrecognized keys or values will be ignored.HeadlessException - if
GraphicsEnvironment.isHeadless returns
truejava.lang.ClassNotFoundExceptionjava.io.IOExceptionMenuItem.removeActionListener(ActionListener),
MenuItem.addActionListener(ActionListener),
MenuItem.writeObject(ObjectOutputStream)ActionListeners
as optional data. The non-serializable listeners 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 objectjava.io.IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
MenuItem.readObject(ObjectInputStream)enabled will
be set to true. Else enabled will
be set to false.label is the label of a menu item.
It can be any string.MenuItem.getLabel(),
MenuItem.setLabel(String)actionCommand
is the label of the menu item, unless it has been
set using setActionCommand.MenuShortcut.getKey(),
MenuShortcut.usesShiftModifier(),
KeyEventMenuShortcut.usesShiftModifier()Point.
If no X coordinate is set it will default to 0.Point.getLocation(),
Point.move(int, int)Point.
If no Y coordinate is set it will default to 0.Point.getLocation(),
Point.move(int, int)npoints
represents the number of valid points in this Polygon
and might be less than the number of elements in
xpoints or ypoints.
This value can be NULL.Polygon.addPoint(int, int)Polygon. The extra elements allow new points
to be added to this Polygon without re-creating this
array. The value of npoints is equal to the
number of valid points in this Polygon.Polygon.addPoint(int, int)Polygon. The extra elements allow new points
to be added to this Polygon without re-creating this
array. The value of npoints is equal to the
number of valid points in this Polygon.Polygon.addPoint(int, int)Polygon.
This value can be null.Polygon.getBoundingBox(),
Polygon.getBounds()Rectangle.Rectangle.setLocation(int, int),
Rectangle.getLocation()Rectangle.Rectangle.setLocation(int, int),
Rectangle.getLocation()Rectangle.Rectangle.setSize(int, int),
Rectangle.getSize()Rectangle.Rectangle.setSize(int, int),
Rectangle.getSize()ObjectInputStream and if
it isn't null adds a listener to
receive adjustment events fired by the
Scrollbar.
Unrecognized keys or values will be ignored.HeadlessException - if
GraphicsEnvironment.isHeadless returns
truejava.lang.ClassNotFoundExceptionjava.io.IOExceptionGraphicsEnvironment.isHeadless(),
Scrollbar.writeObject(ObjectOutputStream)AdjustmentListeners
as optional data. The non-serializable listeners 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:
adjustmentListenerK indicating an
AdjustmentListener objectjava.io.IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
Component.adjustmentListenerK,
Scrollbar.readObject(ObjectInputStream)Scrollbar.
This property must be greater than or equal to minimum
and less than or equal to
maximum - visibleAmountScrollbar.getValue(),
Scrollbar.setValue(int)Scrollbar.
This value must be greater than the minimum
value.Scrollbar.
This value must be less than the maximum
value.Scrollbar's bubble.
When a scroll bar is used to select a range of values,
the visibleAmount represents the size of this range.
Depending on platform, this may be visually indicated
by the size of the bubble.Scrollbar's orientation--being either horizontal
or vertical.
This value should be specified when the scrollbar is created.VERTICAL or
HORIZONTAL only.HeadlessException - if
GraphicsEnvironment.isHeadless() returns
truejava.lang.ClassNotFoundExceptionjava.io.IOExceptionGraphicsEnvironment.isHeadless()java.io.IOExceptionAdjustable methods, namely:
setMinimum(), setMaximum(),
setVisibleAmount().ScrollPane.getVAdjustable()Adjustable methods, namely:
setMinimum(), setMaximum(),
setVisibleAmount().ScrollPane.getHAdjustable()ScrollPane this object is a scrollbar of.value should be greater than minimum
and less than maximumScrollPane.
ATTN: In current implementation
minimum is always 0. This field can
only be altered via setSpan method and
ScrollPane always calls that method with
0 for the minimum. getMinimum method
always returns 0 without checking this field.
ScrollPane.ScrollPane.SystemColor class assumes that
the SystemColor object instances stored in the
static final fields above are the only instances that can
be used by developers.
This method helps maintain those limits on instantiation
by using the index stored in the value field of the
serialized form of the object to replace the serialized
object with the equivalent static object constant field
of SystemColor.
See the SystemColor.writeReplace() method for more information
on the serialized form of these objects.SystemColor
object for writing to the serialized stream.SystemColor object
contains the array index of the system color instead of the
rgb data for the system color.
This index is used by the SystemColor.readResolve() method to
resolve the deserialized objects back to the original
static constant versions to ensure unique instances of
each SystemColor object.java.io.ObjectStreamExceptionHeadlessException - if
GraphicsEnvironment.isHeadless() returns
truejava.lang.ClassNotFoundExceptionjava.io.IOExceptionGraphicsEnvironment.isHeadless()TextArea.
This parameter will determine the text area's height.
Guaranteed to be non-negative.TextArea.getRows(),
TextArea.setRows(int)TextArea.
A column is an approximate average character
width that is platform-dependent.
This parameter will determine the text area's width.
Guaranteed to be non-negative.SCROLLBARS_BOTH = both scrollbars.SCROLLBARS_HORIZONTAL_ONLY = Horizontal bar only.SCROLLBARS_VERTICAL_ONLY = Vertical bar only.SCROLLBARS_NONE = No scrollbars.TextArea.getScrollbarVisibility()HeadlessException - if
GraphicsEnvironment.isHeadless() returns
truejava.lang.ClassNotFoundExceptionjava.io.IOExceptionTextComponent.removeTextListener(java.awt.event.TextListener),
TextComponent.addTextListener(java.awt.event.TextListener),
GraphicsEnvironment.isHeadless()java.io.IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
Component.textListenerKnull value is the same as "".TextComponent is editable.
It will be true if the text component
is editable and false if not.TextComponent.isEditable()selectionStart is the start position
of the selected text.selectionEnd
is the end position of the selected text.HeadlessException - if
GraphicsEnvironment.isHeadless() returns
truejava.lang.ClassNotFoundExceptionjava.io.IOExceptionTextField.removeActionListener(ActionListener),
TextField.addActionListener(ActionListener),
GraphicsEnvironment.isHeadless()java.io.IOExceptionAWTEventMulticaster.save(ObjectOutputStream, String, EventListener),
Component.actionListenerK0.ObjectInputStream and an optional
list of listeners to receive various events fired by
the component; also reads a list of
(possibly null) child windows.
Unrecognized keys or values will be ignored.HeadlessException - if
GraphicsEnvironment.isHeadless returns
truejava.lang.ClassNotFoundExceptionjava.io.IOExceptionGraphicsEnvironment.isHeadless(),
Window.writeObject(java.io.ObjectOutputStream)WindowListeners and
WindowFocusListeners as optional data.
Writes a list of child windows as optional data.
Writes a list of icon images as optional datanull terminated sequence of
0 or more pairs; the pair consists of a String
and and Object; the String
indicates the type of object and is one of the following:
windowListenerK indicating a
WindowListener object;
windowFocusWindowK indicating a
WindowFocusListener object;
ownedWindowK indicating a child
Window objectjava.io.IOExceptionAWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener),
Component.windowListenerK,
Component.windowFocusListenerK,
Component.ownedWindowK,
Window.readObject(ObjectInputStream)Window.getWarningString()Window.show()Window.setAlwaysOnTop(boolean),
Window.isAlwaysOnTop()Window.getFocusableWindowState(),
Window.setFocusableWindowState(boolean)setVisible(true)), or
being moved to the front (with a call to toFront()).Window.setAutoRequestFocus(boolean),
Window.isAutoRequestFocus()ActionEvent.getActionCommand()ActionEvent.getWhen()ActionEvent.getModifiers()AdjustmentEvent.getAdjustable()value will contain the new value of the
adjustable object. This value will always be in a
range associated adjustable object.AdjustmentEvent.getValue()adjustmentType describes how the adjustable
object value has changed.
This value can be increased/decreased by a block or unit amount
where the block is associated with page increments/decrements,
and a unit is associated with line increments/decrements.AdjustmentEvent.getAdjustmentType()isAdjusting is true if the event is one
of the series of multiple adjustment events.AdjustmentEvent.getValueIsAdjusting()ContainerEvent.getChild()FocusEvent.isTemporary()InputEvent.getWhen()when field if it is not present in the
object input stream. In that case, the field will be initialized by
invoking EventQueue.getMostRecentEventTime().java.lang.ClassNotFoundExceptionjava.io.IOExceptionInputMethodEvent.getWhen()InvocationEvent.isDispatched()run() method of the runnable
was executed or not.InvocationEvent.isDispatched()InvocationEvent.getWhen()ItemEvent.getItem()stateChange indicates whether the item
was selected or deselected.ItemEvent.getStateChange()keyChar is a valid unicode character
that is fired by a key or a key combination on
a keyboard.KEY_LOCATION_UNKNOWN,
KEY_LOCATION_STANDARD, KEY_LOCATION_LEFT,
KEY_LOCATION_RIGHT, and KEY_LOCATION_NUMPAD.KeyEvent.getKeyLocation()MouseEvent.getX()MouseEvent.getY()MOUSE_CLICKED,
MOUSE_PRESSED and
MOUSE_RELEASED.
For the above, the clickCount will be at least 1.
For all other events the count will be 0.MouseEvent.getClickCount().MouseInfo.getNumberOfButtons() method.
This range already includes constants NOBUTTON, BUTTON1,
BUTTON2, and BUTTON3
if these buttons are present. So it is allowed to use these constants too.
For example, for a mouse with two buttons this field may contain the following values:
NOBUTTON)
BUTTON1)
BUTTON2)
NOBUTTON)
BUTTON1)
BUTTON2)
BUTTON3)
Toolkit.areExtraMouseButtonsEnabled() disabled by Java
then the field may not contain the value larger than BUTTON3.popupTrigger = false,
no popup menu should appear. If it is true
then a popup menu should appear.PopupMenu,
MouseEvent.isPopupTrigger()MouseWheelEvent.getScrollType()MouseWheelEvent.getWheelRotation()