Serialized Form
-
Package java.awt
-
Class java.awt.AWTError extends java.lang.Error implements Serializable
- serialVersionUID:
- -1819846354050686206L
-
Class java.awt.AWTEvent extends java.util.EventObject implements Serializable
- serialVersionUID:
- -1825314779160409405L
-
Serialized Fields
-
bdata
byte[] bdata -
id
int idThe event's id. -
consumed
boolean consumedControls whether or not the event is sent back down to the peer once the source has processed it - false means it's sent to the peer; true means it's not. Semantic events always have a 'true' value since they were generated by the peer in response to a low-level event.- See Also:
AWTEvent.consume()
,AWTEvent.isConsumed()
-
-
Class java.awt.AWTException extends java.lang.Exception implements Serializable
- serialVersionUID:
- -1900414231151323879L
-
Class java.awt.AWTKeyStroke extends java.lang.Object implements Serializable
- serialVersionUID:
- -6430539691155161871L
-
Class java.awt.AWTPermission extends java.security.BasicPermission implements Serializable
- serialVersionUID:
- 8890392402588814465L
-
Class java.awt.BorderLayout extends java.lang.Object implements Serializable
- serialVersionUID:
- -8658291919501921765L
-
Serialized Fields
-
hgap
int hgapConstructs a border layout with the horizontal gaps between components. The horizontal gap is specified byhgap
. -
vgap
int vgapConstructs a border layout with the vertical gaps between components. The vertical gap is specified byvgap
. -
north
Component northConstant to specify components location to be the north portion of the border layout. -
west
Component westConstant to specify components location to be the west portion of the border layout. -
east
Component eastConstant to specify components location to be the east portion of the border layout. -
south
Component southConstant to specify components location to be the south portion of the border layout. -
center
Component centerConstant to specify components location to be the center portion of the border layout. -
firstLine
Component firstLineA relative positioning constant, that can be used instead of north, south, east, west or center. mixing the two types of constants can lead to unpredicable results. If you use both types, the relative constants will take precedence. For example, if you add components using both theNORTH
andBEFORE_FIRST_LINE
constants in a container whose orientation isLEFT_TO_RIGHT
, only theBEFORE_FIRST_LINE
will be layed out. This will be the same for lastLine, firstItem, lastItem. -
lastLine
Component lastLineA relative positioning constant, that can be used instead of north, south, east, west or center. Please read Description for firstLine. -
firstItem
Component firstItemA relative positioning constant, that can be used instead of north, south, east, west or center. Please read Description for firstLine. -
lastItem
Component lastItemA relative positioning constant, that can be used instead of north, south, east, west or center. Please read Description for firstLine.
-
-
Class java.awt.Button extends Component implements Serializable
- serialVersionUID:
- -8774683716313001058L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOException, HeadlessExceptionReads theObjectInputStream
and if it isn'tnull
adds a listener to receive action events fired by the button. Unrecognized keys or values will be ignored.- Throws:
HeadlessException
- ifGraphicsEnvironment.isHeadless
returnstrue
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
Button.removeActionListener(ActionListener)
,Button.addActionListener(ActionListener)
,GraphicsEnvironment.isHeadless()
,Button.writeObject(ObjectOutputStream)
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOExceptionWrites default serializable fields to stream. Writes a list of serializableActionListeners
as optional data. The non-serializableActionListeners
are detected and no attempt is made to serialize them.- Serial Data:
null
terminated sequence of 0 or more pairs: the pair consists of aString
and anObject
; theString
indicates the type of object and is one of the following:actionListenerK
indicating anActionListener
object- Throws:
java.io.IOException
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,Component.actionListenerK
,Button.readObject(ObjectInputStream)
-
-
Serialized Fields
-
label
java.lang.String labelThe button's label. This value may be null.- See Also:
Button.getLabel()
,Button.setLabel(String)
-
actionCommand
java.lang.String actionCommandThe action to be performed once a button has been pressed. This value may be null. -
buttonSerializedDataVersion
int buttonSerializedDataVersion
-
-
Class java.awt.Button.AccessibleAWTButton extends Component.AccessibleAWTComponent implements Serializable
- serialVersionUID:
- -5932203980244017102L
-
Class java.awt.Canvas extends Component implements Serializable
- serialVersionUID:
- -2284879212465893870L
-
Class java.awt.Canvas.AccessibleAWTCanvas extends Component.AccessibleAWTComponent implements Serializable
- serialVersionUID:
- -6325592262103146699L
-
Class java.awt.CardLayout extends java.lang.Object implements Serializable
- serialVersionUID:
- -4328196481005934313L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOExceptionReads serializable fields from stream.- Throws:
java.lang.ClassNotFoundException
java.io.IOException
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOExceptionWrites serializable fields to stream.- Throws:
java.io.IOException
-
-
Serialized Fields
-
currentCard
int currentCard -
hgap
int hgap -
tab
java.util.Hashtable<K,V> tabdeprectated, for forward compatibility only -
vector
java.util.Vector<E> vector -
vgap
int vgap
-
-
Class java.awt.Checkbox extends Component implements Serializable
- serialVersionUID:
- 7270714317450821763L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOException, HeadlessExceptionReads theObjectInputStream
and if it isn'tnull
adds a listener to receive item events fired by theCheckbox
. Unrecognized keys or values will be ignored.- Throws:
HeadlessException
- ifGraphicsEnvironment.isHeadless
returnstrue
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
Checkbox.removeItemListener(ItemListener)
,Checkbox.addItemListener(ItemListener)
,GraphicsEnvironment.isHeadless()
,Checkbox.writeObject(ObjectOutputStream)
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOExceptionWrites default serializable fields to stream. Writes a list of serializableItemListeners
as optional data. The non-serializableItemListeners
are detected and no attempt is made to serialize them.- Serial Data:
null
terminated sequence of 0 or more pairs; the pair consists of aString
and anObject
; theString
indicates the type of object and is one of the following:itemListenerK
indicating anItemListener
object- Throws:
java.io.IOException
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,Component.itemListenerK
,Checkbox.readObject(ObjectInputStream)
-
-
Serialized Fields
-
label
java.lang.String labelThe label of the Checkbox. This field can be null.- See Also:
Checkbox.getLabel()
,Checkbox.setLabel(String)
-
state
boolean stateThe state of theCheckbox
. -
group
CheckboxGroup groupThe check box group. This field can be null indicating that the checkbox is not a group checkbox. -
checkboxSerializedDataVersion
int checkboxSerializedDataVersion
-
-
Class java.awt.Checkbox.AccessibleAWTCheckbox extends Component.AccessibleAWTComponent implements Serializable
- serialVersionUID:
- 7881579233144754107L
-
Class java.awt.CheckboxGroup extends java.lang.Object implements Serializable
- serialVersionUID:
- 3729780091441768983L
-
Serialized Fields
-
selectedCheckbox
Checkbox selectedCheckboxThe current choice.
-
-
Class java.awt.CheckboxMenuItem extends MenuItem implements Serializable
- serialVersionUID:
- 6190621106981774043L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOException- Throws:
java.lang.ClassNotFoundException
java.io.IOException
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOExceptionWrites default serializable fields to stream. Writes a list of serializableItemListeners
as optional data. The non-serializableItemListeners
are detected and no attempt is made to serialize them.- Serial Data:
null
terminated sequence of 0 or more pairs; the pair consists of aString
and anObject
; theString
indicates the type of object and is one of the following:itemListenerK
indicating anItemListener
object- Throws:
java.io.IOException
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,Component.itemListenerK
,CheckboxMenuItem.readObject(ObjectInputStream)
-
-
Serialized Fields
-
state
boolean stateThe state of a checkbox menu item -
checkboxMenuItemSerializedDataVersion
int checkboxMenuItemSerializedDataVersion
-
-
Class java.awt.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem extends MenuItem.AccessibleAWTMenuItem implements Serializable
- serialVersionUID:
- -1122642964303476L
-
Class java.awt.Choice extends Component implements Serializable
- serialVersionUID:
- -4075310674757313071L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOException, HeadlessExceptionReads theObjectInputStream
and if it isn'tnull
adds a listener to receive item events fired by theChoice
item. Unrecognized keys or values will be ignored.- Throws:
HeadlessException
- ifGraphicsEnvironment.isHeadless
returnstrue
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
Choice.removeItemListener(ItemListener)
,Choice.addItemListener(ItemListener)
,GraphicsEnvironment.isHeadless()
,Choice.writeObject(ObjectOutputStream)
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOExceptionWrites default serializable fields to stream. Writes a list of serializableItemListeners
as optional data. The non-serializableItemListeners
are detected and no attempt is made to serialize them.- Serial Data:
null
terminated sequence of 0 or more pairs; the pair consists of aString
and anObject
; theString
indicates the type of object and is one of the following:itemListenerK
indicating anItemListener
object- Throws:
java.io.IOException
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,Component.itemListenerK
,Choice.readObject(ObjectInputStream)
-
-
Serialized Fields
-
pItems
java.util.Vector<E> pItemsThe items for theChoice
. This can be anull
value. -
selectedIndex
int selectedIndexThe index of the current choice for thisChoice
or -1 if nothing is selected.- See Also:
Choice.getSelectedItem()
,Choice.select(int)
-
choiceSerializedDataVersion
int choiceSerializedDataVersion
-
-
Class java.awt.Choice.AccessibleAWTChoice extends Component.AccessibleAWTComponent implements Serializable
- serialVersionUID:
- 7175603582428509322L
-
Class java.awt.Color extends java.lang.Object implements Serializable
- serialVersionUID:
- 118526816881161077L
-
Serialized Fields
-
value
int valueThe color value.- See Also:
Color.getRGB()
-
frgbvalue
float[] frgbvalueThe color value in the default sRGBColorSpace
asfloat
components (no alpha). Ifnull
after object construction, this must be an sRGB color constructed with 8-bit precision, so compute from theint
color value. -
fvalue
float[] fvalueThe color value in the nativeColorSpace
asfloat
components (no alpha). Ifnull
after object construction, this must be an sRGB color constructed with 8-bit precision, so compute from theint
color value. -
falpha
float falphaThe alpha value as afloat
component. Iffrgbvalue
isnull
, this is not valid data, so compute from theint
color value. -
cs
java.awt.color.ColorSpace csTheColorSpace
. Ifnull
, then it's default is sRGB.
-
-
Class java.awt.Component extends java.lang.Object implements Serializable
- serialVersionUID:
- -7644114512714619750L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOExceptionReads theObjectInputStream
and if it isn'tnull
adds a listener to receive a variety of events fired by the component. Unrecognized keys or values will be ignored.- Throws:
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
Component.writeObject(ObjectOutputStream)
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOExceptionWrites default serializable fields to stream. Writes a variety of serializable listeners as optional data. The non-serializable listeners are detected and no attempt is made to serialize them.- Serial Data:
null
terminated sequence of 0 or more pairs; the pair consists of aString
and anObject
; theString
indicates the type of object and is one of the following (as of 1.4):componentListenerK
indicating anComponentListener
object;focusListenerK
indicating anFocusListener
object;keyListenerK
indicating anKeyListener
object;mouseListenerK
indicating anMouseListener
object;mouseMotionListenerK
indicating anMouseMotionListener
object;inputMethodListenerK
indicating anInputMethodListener
object;hierarchyListenerK
indicating anHierarchyListener
object;hierarchyBoundsListenerK
indicating anHierarchyBoundsListener
object;mouseWheelListenerK
indicating anMouseWheelListener
object, an optionalComponentOrientation
(afterinputMethodListener
, as of 1.2)- Throws:
java.io.IOException
- See Also:
AWTEventMulticaster.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)
-
-
Serialized Fields
-
x
int xThe x position of the component in the parent's coordinate system.- See Also:
Component.getLocation()
-
y
int yThe y position of the component in the parent's coordinate system.- See Also:
Component.getLocation()
-
width
int widthThe width of the component.- See Also:
Component.getSize()
-
height
int heightThe height of the component.- See Also:
Component.getSize()
-
foreground
Color foregroundThe foreground color for this component.foreground
can benull
. -
background
Color backgroundThe background color for this component.background
can benull
. -
font
Font fontThe font used by this component. Thefont
can benull
. -
peerFont
Font peerFontThe font which the peer is currently using. (null
if no peer exists.) -
cursor
Cursor cursorThe cursor displayed when pointer is over this component. This value can benull
. -
locale
java.util.Locale localeThe locale for the component. -
ignoreRepaint
boolean ignoreRepaintTrue when the object should ignore all repaint events.- Since:
- 1.4
- See Also:
Component.setIgnoreRepaint(boolean)
,Component.getIgnoreRepaint()
-
visible
boolean visibleTrue when the object is visible. An object that is not visible is not drawn on the screen. -
enabled
boolean enabledTrue when the object is enabled. An object that is not enabled does not interact with the user. -
valid
boolean validTrue when the object is valid. An invalid object needs to be layed out. This flag is set to false when the object size is changed. -
dropTarget
java.awt.dnd.DropTarget dropTargetTheDropTarget
associated with this component.- Since:
- 1.2
- See Also:
Component.setDropTarget(java.awt.dnd.DropTarget)
,Component.getDropTarget()
-
popups
java.util.Vector<E> popups- See Also:
Component.add(java.awt.PopupMenu)
-
name
java.lang.String nameA component's name. This field can benull
.- See Also:
Component.getName()
,Component.setName(String)
-
nameExplicitlySet
boolean nameExplicitlySetA bool to determine whether the name has been set explicitly.nameExplicitlySet
will be false if the name has not been set and true if it has.- See Also:
Component.getName()
,Component.setName(String)
-
focusable
boolean focusableIndicates whether this Component can be focused.- Since:
- 1.4
- See Also:
Component.setFocusable(boolean)
,Component.isFocusable()
-
isFocusTraversableOverridden
int isFocusTraversableOverriddenTracks whether this Component is relying on default focus travesability.- Since:
- 1.4
-
focusTraversalKeys
java.util.Set<E>[] focusTraversalKeysThe focus traversal keys. These keys will generate focus traversal behavior for Components for which focus traversal keys are enabled. If a value of null is specified for a traversal key, this Component inherits that traversal key from its parent. If all ancestors of this Component have null specified for that traversal key, then the current KeyboardFocusManager's default traversal key is used. -
focusTraversalKeysEnabled
boolean focusTraversalKeysEnabledIndicates whether focus traversal keys are enabled for this Component. Components for which focus traversal keys are disabled receive key events for focus traversal keys. Components for which focus traversal keys are enabled do not see these events; instead, the events are automatically converted to traversal operations.- Since:
- 1.4
- See Also:
Component.setFocusTraversalKeysEnabled(boolean)
,Component.getFocusTraversalKeysEnabled()
-
minSize
Dimension minSizeMinimum size. (This field perhaps should have been transient). -
minSizeSet
boolean minSizeSetWhether or not setMinimumSize has been invoked with a non-null value. -
prefSize
Dimension prefSizePreferred size. (This field perhaps should have been transient). -
prefSizeSet
boolean prefSizeSetWhether or not setPreferredSize has been invoked with a non-null value. -
maxSize
Dimension maxSizeMaximum size -
maxSizeSet
boolean maxSizeSetWhether or not setMaximumSize has been invoked with a non-null value. -
newEventsOnly
boolean newEventsOnlynewEventsOnly
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
long eventMaskTheeventMask
is ONLY set by subclasses viaenableEvents
. 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 byenableInputMethods
and is on by default. -
changeSupport
java.beans.PropertyChangeSupport changeSupportIf anyPropertyChangeListeners
have been registered, thechangeSupport
field describes them. -
isPacked
boolean isPacked -
boundsOp
int boundsOpPseudoparameter for direct Geometry API (setLocation, setBounds setSize to signal setBounds what's changing. Should be used under TreeLock. This is only needed due to the inability to change the cross-calling order of public and deprecated methods. -
autoFocusTransferOnDisposal
boolean autoFocusTransferOnDisposal -
componentSerializedDataVersion
int componentSerializedDataVersionComponent Serialized Data Version. -
accessibleContext
javax.accessibility.AccessibleContext accessibleContext
-
-
Class java.awt.Component.AccessibleAWTComponent extends javax.accessibility.AccessibleContext implements Serializable
- serialVersionUID:
- 642321655757800191L
-
Serialized Fields
-
accessibleAWTComponentHandler
ComponentListener accessibleAWTComponentHandler -
accessibleAWTFocusHandler
FocusListener accessibleAWTFocusHandler
-
-
Class java.awt.ComponentOrientation extends java.lang.Object implements Serializable
- serialVersionUID:
- -4113291392143563828L
-
Class java.awt.Container extends Component implements Serializable
- serialVersionUID:
- 4613797578919906343L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOExceptionDeserializes thisContainer
from the specifiedObjectInputStream
.- Reads default serializable fields from the stream.
- Reads a list of serializable ContainerListener(s) as optional data. If the list is null, no Listeners are installed.
- Reads this Container's FocusTraversalPolicy, which may be null, as optional data.
- Throws:
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
Container.addContainerListener(java.awt.event.ContainerListener)
,Container.writeObject(ObjectOutputStream)
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOExceptionSerializes thisContainer
to the specifiedObjectOutputStream
.- Writes default serializable fields to the stream.
- Writes a list of serializable ContainerListener(s) as optional data. The non-serializable ContainerListner(s) are detected and no attempt is made to serialize them.
- Write this Container's FocusTraversalPolicy if and only if it
is Serializable; otherwise,
null
is written.
- Serial Data:
null
terminated sequence of 0 or more pairs; the pair consists of aString
andObject
; theString
indicates the type of object and is one of the following:containerListenerK
indicating anContainerListener
object; theContainer
'sFocusTraversalPolicy
, ornull
- Throws:
java.io.IOException
- See Also:
AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener)
,Component.containerListenerK
,Container.readObject(ObjectInputStream)
-
-
Serialized Fields
-
component
Component[] componentThe components in this container. -
containerSerializedDataVersion
int containerSerializedDataVersionContainer Serial Data Version. -
dispatcher
java.awt.LightweightDispatcher dispatcherEvent router for lightweight components. If this container is native, this dispatcher takes care of forwarding and retargeting the events to lightweight components contained (if any). -
focusCycleRoot
boolean focusCycleRootIndicates whether this Component is the root of a focus traversal cycle. Once focus enters a traversal cycle, typically it cannot leave it via focus traversal unless one of the up- or down-cycle keys is pressed. Normal traversal is limited to this Container, and all of this Container's descendants that are not descendants of inferior focus cycle roots. -
focusTraversalPolicyProvider
boolean focusTraversalPolicyProviderStores the value of focusTraversalPolicyProvider property. -
layoutMgr
LayoutManager layoutMgrLayout manager for this container. -
maxSize
Dimension maxSizeMaximum size of this Container. -
ncomponents
int ncomponentsThe number of components in this container. This value can be null.
-
-
Class java.awt.Container.AccessibleAWTContainer extends Component.AccessibleAWTComponent implements Serializable
- serialVersionUID:
- 5081320404842566097L
-
Serialized Fields
-
accessibleContainerHandler
ContainerListener accessibleContainerHandler
-
-
Class java.awt.ContainerOrderFocusTraversalPolicy extends FocusTraversalPolicy implements Serializable
- serialVersionUID:
- 486933713763926351L
-
Class java.awt.Cursor extends java.lang.Object implements Serializable
- serialVersionUID:
- 8028237497568985504L
-
Serialized Fields
-
type
int typeThe chosen cursor type initially set to theDEFAULT_CURSOR
.- See Also:
Cursor.getType()
-
name
java.lang.String nameThe user-visible name of the cursor.- See Also:
Cursor.getName()
-
-
Class java.awt.DefaultFocusTraversalPolicy extends ContainerOrderFocusTraversalPolicy implements Serializable
- serialVersionUID:
- 8876966522510157497L
-
Class java.awt.Dialog extends Window implements Serializable
- serialVersionUID:
- 5920926903803293709L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOException, HeadlessException- Throws:
java.lang.ClassNotFoundException
java.io.IOException
HeadlessException
-
-
Serialized Fields
-
resizable
boolean resizableA dialog's resizable property. Will be true if the Dialog is to be resizable, otherwise it will be false.- See Also:
Dialog.setResizable(boolean)
-
undecorated
boolean undecoratedThis field indicates whether the dialog is undecorated. This property can only be changed while the dialog is not displayable.undecorated
will be true if the dialog is undecorated, otherwise it will be false.- Since:
- 1.4
- See Also:
Dialog.setUndecorated(boolean)
,Dialog.isUndecorated()
,Component.isDisplayable()
-
modal
boolean modalTrue if this dialog is modal, false is the dialog is modeless. A modal dialog blocks user input to some application top-level windows. This field is kept only for backwards compatibility. Use theModalityType
enum instead. -
modalityType
Dialog.ModalityType modalityTypeModality type of this dialog. If the dialog's modality type is notModalityType.MODELESS
, it blocks all user input to some application top-level windows.- Since:
- 1.6
- See Also:
Dialog.ModalityType
,Dialog.getModalityType()
,Dialog.setModalityType(java.awt.Dialog.ModalityType)
-
title
java.lang.String titleSpecifies the title of the Dialog. This field can be null.- See Also:
Dialog.getTitle()
,Dialog.setTitle(String)
-
-
Class java.awt.Dialog.AccessibleAWTDialog extends Window.AccessibleAWTWindow implements Serializable
- serialVersionUID:
- 4837230331833941201L
-
Class java.awt.Dimension extends java.awt.geom.Dimension2D implements Serializable
- serialVersionUID:
- 4723952579491349524L
-
Serialized Fields
-
width
int widthThe width dimension; negative values can be used.- Since:
- 1.0
- See Also:
Dimension.getSize()
,Dimension.setSize(double, double)
-
height
int heightThe height dimension; negative values can be used.- Since:
- 1.0
- See Also:
Dimension.getSize()
,Dimension.setSize(double, double)
-
-
Class java.awt.Event extends java.lang.Object implements Serializable
- serialVersionUID:
- 5488922509400504703L
-
Serialized Fields
-
target
java.lang.Object targetThe target component. This indicates the component over which the event occurred or with which the event is associated. This object has been replaced by AWTEvent.getSource()- See Also:
EventObject.getSource()
-
when
long whenThe time stamp. Replaced by InputEvent.getWhen().- See Also:
InputEvent.getWhen()
-
id
int idIndicates which type of event the event is, and which otherEvent
variables are relevant for the event. This has been replaced by AWTEvent.getID()- See Also:
AWTEvent.getID()
-
x
int xThe x coordinate of the event. Replaced by MouseEvent.getX()- See Also:
MouseEvent.getX()
-
y
int yThe y coordinate of the event. Replaced by MouseEvent.getY()- See Also:
MouseEvent.getY()
-
key
int keyThe key code of the key that was pressed in a keyboard event. This has been replaced by KeyEvent.getKeyCode()- See Also:
KeyEvent.getKeyCode()
-
modifiers
int modifiersThe state of the modifier keys. This is replaced with InputEvent.getModifiers() In java 1.1 MouseEvent and KeyEvent are subclasses of InputEvent.- See Also:
InputEvent.getModifiers()
-
clickCount
int clickCountForMOUSE_DOWN
events, this field indicates the number of consecutive clicks. For other events, its value is0
. This field has been replaced by MouseEvent.getClickCount().- See Also:
MouseEvent.getClickCount().
-
arg
java.lang.Object argAn arbitrary argument of the event. The value of this field depends on the type of event.arg
has been replaced by event specific property. -
evt
Event evtThe next event. This field is set when putting events into a linked list. This has been replaced by EventQueue.- See Also:
EventQueue
-
consumed
boolean consumedThis field controls whether or not the event is sent back down to the peer once the target has processed it - false means it's sent to the peer, true means it's not.- See Also:
Event.isConsumed()
-
-
Class java.awt.FileDialog extends Dialog implements Serializable
- serialVersionUID:
- 5035145889651310422L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOExceptionReads theObjectInputStream
and performs a backwards compatibility check by converting either adir
or afile
equal to an empty string tonull
.- Throws:
java.lang.ClassNotFoundException
java.io.IOException
-
-
Serialized Fields
-
mode
int mode -
dir
java.lang.String dir -
file
java.lang.String file -
files
java.io.File[] filesContains the File instances for all the files that the user selects.- Since:
- 1.7
- See Also:
FileDialog.getFiles()
-
multipleMode
boolean multipleModeRepresents whether the file dialog allows the multiple file selection.- Since:
- 1.7
- See Also:
FileDialog.setMultipleMode(boolean)
,FileDialog.isMultipleMode()
-
filter
java.io.FilenameFilter filter
-
-
Class java.awt.FlowLayout extends java.lang.Object implements Serializable
- serialVersionUID:
- -7262534875583282631L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream stream) throws java.io.IOException, java.lang.ClassNotFoundExceptionReads this object out of a serialization stream, handling objects written by older versions of the class that didn't contain all of the fields we use now..- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
-
Serialized Fields
-
align
int alignalign
is the property that determines how each row distributes empty space. It can be one of the following values:LEFT
RIGHT
CENTER
-
newAlign
int newAlignnewAlign
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
- Since:
- 1.2
- See Also:
FlowLayout.getAlignment()
,FlowLayout.setAlignment(int)
-
hgap
int hgapThe flow layout manager allows a seperation of components with gaps. The horizontal gap will specify the space between components and between the components and the borders of theContainer
.- See Also:
FlowLayout.getHgap()
,FlowLayout.setHgap(int)
-
vgap
int vgapThe flow layout manager allows a seperation of components with gaps. The vertical gap will specify the space between rows and between the the rows and the borders of theContainer
.- See Also:
FlowLayout.getHgap()
,FlowLayout.setHgap(int)
-
alignOnBaseline
boolean alignOnBaselineIf true, components will be aligned on their baseline. -
serialVersionOnStream
int serialVersionOnStreamThis represent thecurrentSerialVersion
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..- Since:
- 1.2
-
-
Class java.awt.Font extends java.lang.Object implements Serializable
- serialVersionUID:
- -4206021311591459213L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOExceptionReads theObjectInputStream
. Unrecognized keys or values will be ignored.- Throws:
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
Font.writeObject(java.io.ObjectOutputStream)
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.lang.ClassNotFoundException, java.io.IOExceptionWrites default serializable fields to a stream.- Throws:
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,Font.readObject(java.io.ObjectInputStream)
-
-
Serialized Fields
-
fRequestedAttributes
java.util.Hashtable<K,V> fRequestedAttributesThis is now only used during serialization. Typically it is null.- See Also:
Font.getAttributes()
-
name
java.lang.String nameThe logical name of thisFont
, as passed to the constructor.- Since:
- JDK1.0
- See Also:
Font.getName()
-
style
int styleThe style of thisFont
, as passed to the constructor. This style can be PLAIN, BOLD, ITALIC, or BOLD+ITALIC.- Since:
- JDK1.0
- See Also:
Font.getStyle()
-
size
int sizeThe point size of thisFont
, rounded to integer.- Since:
- JDK1.0
- See Also:
Font.getSize()
-
pointSize
float pointSizeThe point size of thisFont
infloat
.- See Also:
Font.getSize()
,Font.getSize2D()
-
fontSerializedDataVersion
int fontSerializedDataVersionTheFont
Serializable Data Form.
-
-
Class java.awt.FontFormatException extends java.lang.Exception implements Serializable
- serialVersionUID:
- -4481290147811361272L
-
Class java.awt.FontMetrics extends java.lang.Object implements Serializable
- serialVersionUID:
- 1681126225205050147L
-
Serialized Fields
-
font
Font fontThe actualFont
from which the font metrics are created. This cannot be null.- See Also:
FontMetrics.getFont()
-
-
Class java.awt.Frame extends Window implements Serializable
- serialVersionUID:
- 2673458971256075116L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOException, HeadlessExceptionReads theObjectInputStream
. Tries to read an iconImage
, which is optional data available as of 1.4. If an iconImage
is not available, but anything other than an EOF is detected, anOptionalDataException
will be thrown. Unrecognized keys or values will be ignored.- Throws:
java.io.OptionalDataException
- if an iconImage
is not available, but anything other than an EOF is detectedHeadlessException
- ifGraphicsEnvironment.isHeadless
returnstrue
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
GraphicsEnvironment.isHeadless()
,Image
,Frame.getIconImage()
,Frame.setIconImage(Image)
,Frame.writeObject(ObjectOutputStream)
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOExceptionWrites default serializable fields to stream. Writes an optional serializable iconImage
, which is available as of 1.4.- Serial Data:
- an optional icon
Image
- Throws:
java.io.IOException
- See Also:
Image
,Frame.getIconImage()
,Frame.setIconImage(Image)
,Frame.readObject(ObjectInputStream)
-
-
Serialized Fields
-
maximizedBounds
Rectangle maximizedBoundsMaximized bounds for this frame.- Since:
- 1.4
- See Also:
Frame.setMaximizedBounds(Rectangle)
,Frame.getMaximizedBounds()
-
title
java.lang.String titleThis is the title of the frame. It can be changed at any time.title
can be null and if this is the case thetitle
= "".- See Also:
Frame.getTitle()
,Frame.setTitle(String)
-
menuBar
MenuBar menuBarThe frames menubar. IfmenuBar
= null the frame will not have a menubar.- See Also:
Frame.getMenuBar()
,Frame.setMenuBar(MenuBar)
-
resizable
boolean resizableThis field indicates whether the frame is resizable. This property can be changed at any time.resizable
will be true if the frame is resizable, otherwise it will be false.- See Also:
Frame.isResizable()
-
undecorated
boolean undecoratedThis field indicates whether the frame is undecorated. This property can only be changed while the frame is not displayable.undecorated
will be true if the frame is undecorated, otherwise it will be false.- Since:
- 1.4
- See Also:
Frame.setUndecorated(boolean)
,Frame.isUndecorated()
,Component.isDisplayable()
-
mbManagement
boolean mbManagementmbManagement
is only used by the Motif implementation. -
state
int state -
ownedWindows
java.util.Vector<E> ownedWindows -
frameSerializedDataVersion
int frameSerializedDataVersionFrame
's Serialized Data Version.
-
-
Class java.awt.Frame.AccessibleAWTFrame extends Window.AccessibleAWTWindow implements Serializable
- serialVersionUID:
- -6172960752956030250L
-
Class java.awt.GraphicsConfigTemplate extends java.lang.Object implements Serializable
- serialVersionUID:
- -8061369279557787079L
-
Class java.awt.GridBagConstraints extends java.lang.Object implements Serializable
- serialVersionUID:
- -1000070633030801713L
-
Serialized Fields
-
gridx
int gridxSpecifies the cell containing the leading edge of the component's display area, where the first cell in a row hasgridx=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 valueRELATIVE
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
int gridySpecifies the cell at the top of the component's display area, where the topmost cell hasgridy=0
. The valueRELATIVE
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. -
gridwidth
int gridwidthSpecifies the number of cells in a row for the component's display area.Use
REMAINDER
to specify that the component's display area will be fromgridx
to the last cell in the row. UseRELATIVE
to specify that the component's display area will be fromgridx
to the next to the last one in its row.gridwidth
should be non-negative and the default value is 1. -
gridheight
int gridheightSpecifies the number of cells in a column for the component's display area.Use
REMAINDER
to specify that the component's display area will be fromgridy
to the last cell in the column. UseRELATIVE
to specify that the component's display area will be fromgridy
to the next to the last one in its column.gridheight
should be a non-negative value and the default value is 1. -
weightx
double weightxSpecifies how to distribute extra horizontal space.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. -
weighty
double weightySpecifies how to distribute extra vertical space.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. -
anchor
int anchorThis field is used when the component is smaller than its display area. It determines where, within the display area, to place the component.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
, andNORTHWEST
. The orientation relative values are:PAGE_START
,PAGE_END
,LINE_START
,LINE_END
,FIRST_LINE_START
,FIRST_LINE_END
,LAST_LINE_START
andLAST_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
, andBELOW_BASELINE_TRAILING
. The default value isCENTER
. -
fill
int fillThis field is used when the component's display area is larger than the component's requested size. It determines whether to resize the component, and if so, how.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
.- See Also:
GridBagConstraints.clone()
-
-
insets
Insets insetsThis field specifies the external padding of the component, the minimum amount of space between the component and the edges of its display area.The default value is
new Insets(0, 0, 0, 0)
.- See Also:
GridBagConstraints.clone()
-
ipadx
int ipadxThis field specifies the internal padding of the component, how much space to add to the minimum width of the component. The width of the component is at least its minimum width plusipadx
pixels.The default value is
0
. -
ipady
int ipadyThis field specifies the internal padding, that is, how much space to add to the minimum height of the component. The height of the component is at least its minimum height plusipady
pixels.The default value is 0.
-
tempX
int tempXTemporary place holder for the x coordinate. -
tempY
int tempYTemporary place holder for the y coordinate. -
tempWidth
int tempWidthTemporary place holder for the Width of the component. -
tempHeight
int tempHeightTemporary place holder for the Height of the component. -
minWidth
int minWidthThe minimum width of the component. It is used to calculateipady
, where the default will be 0.- See Also:
GridBagConstraints.ipady
-
minHeight
int minHeightThe minimum height of the component. It is used to calculateipadx
, where the default will be 0.- See Also:
GridBagConstraints.ipadx
-
-
Class java.awt.GridBagLayout extends java.lang.Object implements Serializable
- serialVersionUID:
- 8838754796412211005L
-
Serialized Fields
-
comptable
java.util.Hashtable<K,V> comptableThis hashtable maintains the association between a component and its gridbag constraints. The Keys incomptable
are the components and the values are the instances ofGridBagConstraints
.- See Also:
GridBagConstraints
-
defaultConstraints
GridBagConstraints defaultConstraintsThis field holds a gridbag constraints instance containing the default values, so if a component does not have gridbag constraints associated with it, then the component will be assigned a copy of thedefaultConstraints
. -
layoutInfo
GridBagLayoutInfo layoutInfoThis field holds the layout information for the gridbag. The information in this field is based on the most recent validation of the gridbag. IflayoutInfo
isnull
this indicates that there are no components in the gridbag or if there are components, they have not yet been validated. -
columnWidths
int[] columnWidthsThis field holds the overrides to the column minimum width. If this field is non-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.- See Also:
GridBagLayout.getLayoutDimensions()
-
rowHeights
int[] rowHeightsThis field holds the overrides to the row minimum heights. If this field is non-null
the values are applied to the gridbag after all of the minimum row heights have been calculated. IfrowHeights
has more elements than the number of rows, rowa are added to the gridbag to match the number of elements inrowHeights
.- See Also:
GridBagLayout.getLayoutDimensions()
-
columnWeights
double[] columnWeightsThis field holds the overrides to the column weights. If this field is non-null
the values are applied to the gridbag after all of the columns weights have been calculated. IfcolumnWeights[i]
> weight for column i, then column i is assigned the weight incolumnWeights[i]
. IfcolumnWeights
has more elements than the number of columns, the excess elements are ignored - they do not cause more columns to be created. -
rowWeights
double[] rowWeightsThis field holds the overrides to the row weights. If this field is non-null
the values are applied to the gridbag after all of the rows weights have been calculated. IfrowWeights[i]
> weight for row i, then row i is assigned the weight inrowWeights[i]
. IfrowWeights
has more elements than the number of rows, the excess elements are ignored - they do not cause more rows to be created. -
componentAdjusting
Component componentAdjustingThe component being positioned. This is set before calling intoadjustForGravity
.
-
-
Class java.awt.GridBagLayoutInfo extends java.lang.Object implements Serializable
- serialVersionUID:
- -4899416460737170217L
-
Serialized Fields
-
width
int width -
height
int height -
startx
int startx -
starty
int starty -
minWidth
int[] minWidth -
minHeight
int[] minHeight -
weightX
double[] weightX -
weightY
double[] weightY -
hasBaseline
boolean hasBaseline -
baselineType
short[] baselineType -
maxAscent
int[] maxAscent -
maxDescent
int[] maxDescent
-
-
Class java.awt.GridLayout extends java.lang.Object implements Serializable
- serialVersionUID:
- -7411804673224730901L
-
Serialized Fields
-
hgap
int hgapThis is the horizontal gap (in pixels) which specifies the space between columns. They can be changed at any time. This should be a non-negative integer.- See Also:
GridLayout.getHgap()
,GridLayout.setHgap(int)
-
vgap
int vgapThis is the vertical gap (in pixels) which specifies the space between rows. They can be changed at any time. This should be a non negative integer.- See Also:
GridLayout.getVgap()
,GridLayout.setVgap(int)
-
rows
int rowsThis is the number of rows specified for the grid. The number of rows can be changed at any time. This should be a non negative integer, where '0' means 'any number' meaning that the number of Rows in that dimension depends on the other dimension.- See Also:
GridLayout.getRows()
,GridLayout.setRows(int)
-
cols
int colsThis is the number of columns specified for the grid. The number of columns can be changed at any time. This should be a non negative integer, where '0' means 'any number' meaning that the number of Columns in that dimension depends on the other dimension.
-
-
Class java.awt.HeadlessException extends java.lang.UnsupportedOperationException implements Serializable
- serialVersionUID:
- 167183644944358563L
-
Class java.awt.IllegalComponentStateException extends java.lang.IllegalStateException implements Serializable
- serialVersionUID:
- -1889339587208144238L
-
Class java.awt.Insets extends java.lang.Object implements Serializable
- serialVersionUID:
- -2272572637695466749L
-
Serialized Fields
-
top
int topThe inset from the top. This value is added to the Top of the rectangle to yield a new location for the Top.- See Also:
Insets.clone()
-
left
int leftThe inset from the left. This value is added to the Left of the rectangle to yield a new location for the Left edge.- See Also:
Insets.clone()
-
bottom
int bottomThe inset from the bottom. This value is subtracted from the Bottom of the rectangle to yield a new location for the Bottom.- See Also:
Insets.clone()
-
right
int rightThe inset from the right. This value is subtracted from the Right of the rectangle to yield a new location for the Right edge.- See Also:
Insets.clone()
-
-
Class java.awt.Label extends Component implements Serializable
- serialVersionUID:
- 3094126758329070636L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOException, HeadlessExceptionRead a label from an object input stream.- Throws:
HeadlessException
- ifGraphicsEnvironment.isHeadless()
returnstrue
java.lang.ClassNotFoundException
java.io.IOException
- Since:
- 1.4
- See Also:
GraphicsEnvironment.isHeadless()
-
-
Serialized Fields
-
text
java.lang.String textThe text of this label. This text can be modified by the program but never by the user.- See Also:
Label.getText()
,Label.setText(String)
-
alignment
int alignmentThe label's alignment. The default alignment is set to be left justified.- See Also:
Label.getAlignment()
,Label.setAlignment(int)
-
-
Class java.awt.Label.AccessibleAWTLabel extends Component.AccessibleAWTComponent implements Serializable
- serialVersionUID:
- -3568967560160480438L
-
Class java.awt.List extends Component implements Serializable
- serialVersionUID:
- -3304312411574666869L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOException, HeadlessExceptionReads theObjectInputStream
and if it isn'tnull
adds a listener to receive both item events and action events (as specified by the key stored in the stream) fired by theList
. Unrecognized keys or values will be ignored.- Throws:
HeadlessException
- ifGraphicsEnvironment.isHeadless
returnstrue
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
List.removeItemListener(ItemListener)
,List.addItemListener(ItemListener)
,GraphicsEnvironment.isHeadless()
,List.writeObject(ObjectOutputStream)
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOExceptionWrites default serializable fields to stream. Writes a list of serializableItemListeners
andActionListeners
as optional data. The non-serializable listeners are detected and no attempt is made to serialize them.- Serial Data:
null
terminated sequence of 0 or more pairs; the pair consists of aString
and anObject
; theString
indicates the type of object and is one of the following:itemListenerK
indicating anItemListener
object;actionListenerK
indicating anActionListener
object- Throws:
java.io.IOException
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,Component.itemListenerK
,Component.actionListenerK
,List.readObject(ObjectInputStream)
-
-
Serialized Fields
-
items
java.util.Vector<E> itemsA vector created to contain items which will become part of the List Component.- See Also:
List.addItem(String)
,List.getItem(int)
-
rows
int rowsThis field will represent the number of visible rows in theList
Component. It is specified only once, and that is when the list component is actually created. It will never change.- See Also:
List.getRows()
-
multipleMode
boolean multipleModemultipleMode
is a variable that will be set totrue
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
int[] selectedselected
is an array that will contain the indices of items that have been selected. -
visibleIndex
int visibleIndexThis variable contains the value that will be used when trying to make a particular list item visible.- See Also:
List.makeVisible(int)
-
listSerializedDataVersion
int listSerializedDataVersionTheList
component's Serialized Data Version.
-
-
Class java.awt.List.AccessibleAWTList extends Component.AccessibleAWTComponent implements Serializable
- serialVersionUID:
- 7924617370136012829L
-
Class java.awt.List.AccessibleAWTList.AccessibleAWTListChild extends Component.AccessibleAWTComponent implements Serializable
- serialVersionUID:
- 4412022926028300317L
-
Serialized Fields
-
parent
List parent -
indexInParent
int indexInParent
-
-
Class java.awt.MediaTracker extends java.lang.Object implements Serializable
- serialVersionUID:
- -483174189758638095L
-
Serialized Fields
-
target
Component targetA givenComponent
that will be tracked by a media tracker where the image will eventually be drawn.- See Also:
MediaTracker.MediaTracker(Component)
-
head
java.awt.MediaEntry headThe head of the list ofImages
that is being tracked by theMediaTracker
.
-
-
Class java.awt.Menu extends MenuItem implements Serializable
- serialVersionUID:
- -8809584163345499784L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, java.lang.ClassNotFoundException, HeadlessExceptionReads theObjectInputStream
. Unrecognized keys or values will be ignored.- Throws:
HeadlessException
- ifGraphicsEnvironment.isHeadless
returnstrue
java.io.IOException
java.lang.ClassNotFoundException
- See Also:
GraphicsEnvironment.isHeadless()
,Menu.writeObject(ObjectOutputStream)
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOExceptionWrites default serializable fields to stream.- Throws:
java.io.IOException
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,Menu.readObject(ObjectInputStream)
-
-
Serialized Fields
-
items
java.util.Vector<E> itemsA vector of the items that will be part of the Menu.- See Also:
Menu.countItems()
-
tearOff
boolean tearOffThis field indicates whether the menu has the tear of property or not. It will be set totrue
if the menu has the tear off property and it will be set tofalse
if it does not. A torn off menu can be deleted by a user when it is no longer needed.- See Also:
Menu.isTearOff()
-
isHelpMenu
boolean isHelpMenuThis field will be set totrue
if the Menu in question is actually a help menu. Otherwise it will be set tofalse
. -
menuSerializedDataVersion
int menuSerializedDataVersionThe menu serialized Data Version.
-
-
Class java.awt.Menu.AccessibleAWTMenu extends MenuItem.AccessibleAWTMenuItem implements Serializable
- serialVersionUID:
- 5228160894980069094L
-
Class java.awt.MenuBar extends MenuComponent implements Serializable
- serialVersionUID:
- -4930327919388951260L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOException, HeadlessExceptionReads theObjectInputStream
. Unrecognized keys or values will be ignored.- Throws:
HeadlessException
- ifGraphicsEnvironment.isHeadless
returnstrue
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
GraphicsEnvironment.isHeadless()
,MenuBar.writeObject(java.io.ObjectOutputStream)
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.lang.ClassNotFoundException, java.io.IOExceptionWrites default serializable fields to stream.- Throws:
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,MenuBar.readObject(java.io.ObjectInputStream)
-
-
Serialized Fields
-
menus
java.util.Vector<E> menusThis field represents a vector of the actual menus that will be part of the MenuBar.- See Also:
MenuBar.countMenus()
-
helpMenu
Menu helpMenuThis menu is a special menu dedicated to help. The one thing to note about this menu is that on some platforms it appears at the right edge of the menubar. -
menuBarSerializedDataVersion
int menuBarSerializedDataVersionThe MenuBar's serialized data version.
-
-
Class java.awt.MenuBar.AccessibleAWTMenuBar extends MenuComponent.AccessibleAWTMenuComponent implements Serializable
- serialVersionUID:
- -8577604491830083815L
-
Class java.awt.MenuComponent extends java.lang.Object implements Serializable
- serialVersionUID:
- -4536902356223894379L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOException, HeadlessExceptionReads the menu component from an object input stream.- Throws:
HeadlessException
- ifGraphicsEnvironment.isHeadless
returnstrue
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
GraphicsEnvironment.isHeadless()
-
-
Serialized Fields
-
font
Font fontThe menu component's font. This value can benull
at which point a default will be used. This defaults tonull
. -
name
java.lang.String nameThe menu component's name, which defaults tonull
. -
nameExplicitlySet
boolean nameExplicitlySetA variable to indicate whether a name is explicitly set. Iftrue
the name will be set explicitly. This defaults tofalse
.- See Also:
MenuComponent.setName(String)
-
newEventsOnly
boolean newEventsOnlyDefaults tofalse
. -
accessibleContext
javax.accessibility.AccessibleContext accessibleContext
-
-
Class java.awt.MenuComponent.AccessibleAWTMenuComponent extends javax.accessibility.AccessibleContext implements Serializable
- serialVersionUID:
- -4269533416223798698L
-
Class java.awt.MenuItem extends MenuComponent implements Serializable
- serialVersionUID:
- -21757335363267194L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOException, HeadlessExceptionReads theObjectInputStream
and if it isn'tnull
adds a listener to receive action events fired by theMenu
Item. Unrecognized keys or values will be ignored.- Throws:
HeadlessException
- ifGraphicsEnvironment.isHeadless
returnstrue
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
MenuItem.removeActionListener(ActionListener)
,MenuItem.addActionListener(ActionListener)
,MenuItem.writeObject(ObjectOutputStream)
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOExceptionWrites default serializable fields to stream. Writes a list of serializableActionListeners
as optional data. The non-serializable listeners are detected and no attempt is made to serialize them.- Serial Data:
null
terminated sequence of 0 or more pairs; the pair consists of aString
and anObject
; theString
indicates the type of object and is one of the following:actionListenerK
indicating anActionListener
object- Throws:
java.io.IOException
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,MenuItem.readObject(ObjectInputStream)
-
-
Serialized Fields
-
enabled
boolean enabledA value to indicate whether a menu item is enabled or not. If it is enabled,enabled
will be set to true. Elseenabled
will be set to false. -
label
java.lang.String labellabel
is the label of a menu item. It can be any string.- See Also:
MenuItem.getLabel()
,MenuItem.setLabel(String)
-
actionCommand
java.lang.String actionCommandThis field indicates the command tha has been issued by a particular menu item. By default theactionCommand
is the label of the menu item, unless it has been set using setActionCommand. -
eventMask
long eventMaskThe 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. -
shortcut
MenuShortcut shortcutA sequence of key stokes that ia associated with a menu item. Note :in 1.1.2 you must use setActionCommand() on a menu item in order for its shortcut to work. -
menuItemSerializedDataVersion
int menuItemSerializedDataVersionMenu item serialized data version.
-
-
Class java.awt.MenuItem.AccessibleAWTMenuItem extends MenuComponent.AccessibleAWTMenuComponent implements Serializable
- serialVersionUID:
- -217847831945965825L
-
Class java.awt.MenuShortcut extends java.lang.Object implements Serializable
- serialVersionUID:
- 143448358473180225L
-
Serialized Fields
-
key
int keyThe virtual keycode for the menu shortcut. This is the keycode with which the menu shortcut will be created. Note that it is a virtual keycode, not a character, e.g. KeyEvent.VK_A, not 'a'. Note: in 1.1.x you must use setActionCommand() on a menu item in order for its shortcut to work, otherwise it will fire a null action command.- Since:
- JDK1.1
- See Also:
MenuShortcut.getKey()
,MenuShortcut.usesShiftModifier()
,KeyEvent
-
usesShift
boolean usesShiftIndicates whether the shft key was pressed. If true, the shift key was pressed. If false, the shift key was not pressed- Since:
- JDK1.1
- See Also:
MenuShortcut.usesShiftModifier()
-
-
Class java.awt.Panel extends Container implements Serializable
- serialVersionUID:
- -2728009084054400034L
-
Class java.awt.Panel.AccessibleAWTPanel extends Container.AccessibleAWTContainer implements Serializable
- serialVersionUID:
- -6409552226660031050L
-
Class java.awt.Point extends java.awt.geom.Point2D implements Serializable
- serialVersionUID:
- -5276940640259749850L
-
Serialized Fields
-
x
int xThe X coordinate of thisPoint
. If no X coordinate is set it will default to 0.- Since:
- 1.0
- See Also:
Point.getLocation()
,Point.move(int, int)
-
y
int yThe Y coordinate of thisPoint
. If no Y coordinate is set it will default to 0.- Since:
- 1.0
- See Also:
Point.getLocation()
,Point.move(int, int)
-
-
Class java.awt.Polygon extends java.lang.Object implements Serializable
- serialVersionUID:
- -6460061437900069969L
-
Serialized Fields
-
npoints
int npointsThe total number of points. The value ofnpoints
represents the number of valid points in thisPolygon
and might be less than the number of elements inxpoints
orypoints
. This value can be NULL.- Since:
- 1.0
- See Also:
Polygon.addPoint(int, int)
-
xpoints
int[] xpointsThe array of X coordinates. The number of elements in this array might be more than the number of X coordinates in thisPolygon
. The extra elements allow new points to be added to thisPolygon
without re-creating this array. The value ofnpoints
is equal to the number of valid points in thisPolygon
.- Since:
- 1.0
- See Also:
Polygon.addPoint(int, int)
-
ypoints
int[] ypointsThe array of Y coordinates. The number of elements in this array might be more than the number of Y coordinates in thisPolygon
. The extra elements allow new points to be added to thisPolygon
without re-creating this array. The value ofnpoints
is equal to the number of valid points in thisPolygon
.- Since:
- 1.0
- See Also:
Polygon.addPoint(int, int)
-
bounds
Rectangle boundsThe bounds of thisPolygon
. This value can be null.- Since:
- 1.0
- See Also:
Polygon.getBoundingBox()
,Polygon.getBounds()
-
-
Class java.awt.PopupMenu extends Menu implements Serializable
- serialVersionUID:
- -4620452533522760060L
-
Class java.awt.PopupMenu.AccessibleAWTPopupMenu extends Menu.AccessibleAWTMenu implements Serializable
- serialVersionUID:
- -4282044795947239955L
-
Class java.awt.Rectangle extends java.awt.geom.Rectangle2D implements Serializable
- serialVersionUID:
- -4345857070255674764L
-
Serialized Fields
-
x
int xThe X coordinate of the upper-left corner of theRectangle
.- Since:
- 1.0
- See Also:
Rectangle.setLocation(int, int)
,Rectangle.getLocation()
-
y
int yThe Y coordinate of the upper-left corner of theRectangle
.- Since:
- 1.0
- See Also:
Rectangle.setLocation(int, int)
,Rectangle.getLocation()
-
width
int widthThe width of theRectangle
.- Since:
- 1.0
- See Also:
Rectangle.setSize(int, int)
,Rectangle.getSize()
-
height
int heightThe height of theRectangle
.- Since:
- 1.0
- See Also:
Rectangle.setSize(int, int)
,Rectangle.getSize()
-
-
Class java.awt.Scrollbar extends Component implements Serializable
- serialVersionUID:
- 8451667562882310543L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOException, HeadlessExceptionReads theObjectInputStream
and if it isn'tnull
adds a listener to receive adjustment events fired by theScrollbar
. Unrecognized keys or values will be ignored.- Throws:
HeadlessException
- ifGraphicsEnvironment.isHeadless
returnstrue
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
GraphicsEnvironment.isHeadless()
,Scrollbar.writeObject(ObjectOutputStream)
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOExceptionWrites default serializable fields to stream. Writes a list of serializableAdjustmentListeners
as optional data. The non-serializable listeners are detected and no attempt is made to serialize them.- Serial Data:
null
terminated sequence of 0 or more pairs; the pair consists of aString
and anObject
; theString
indicates the type of object and is one of the following:adjustmentListenerK
indicating anAdjustmentListener
object- Throws:
java.io.IOException
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,Component.adjustmentListenerK
,Scrollbar.readObject(ObjectInputStream)
-
-
Serialized Fields
-
value
int valueThe value of theScrollbar
. This property must be greater than or equal tominimum
and less than or equal tomaximum - visibleAmount
- See Also:
Scrollbar.getValue()
,Scrollbar.setValue(int)
-
maximum
int maximumThe maximum value of theScrollbar
. This value must be greater than theminimum
value. -
minimum
int minimumThe minimum value of theScrollbar
. This value must be less than themaximum
value. -
visibleAmount
int visibleAmountThe size of theScrollbar
'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. -
orientation
int orientationTheScrollbar
's orientation--being either horizontal or vertical. This value should be specified when the scrollbar is created.
orientation can be either :VERTICAL
orHORIZONTAL
only. -
lineIncrement
int lineIncrementThe amount by which the scrollbar value will change when going up or down by a line. This value must be greater than zero. -
pageIncrement
int pageIncrementThe amount by which the scrollbar value will change when going up or down by a page. This value must be greater than zero. -
scrollbarSerializedDataVersion
int scrollbarSerializedDataVersionThe scroll bar's serialized Data Version.
-
-
Class java.awt.Scrollbar.AccessibleAWTScrollBar extends Component.AccessibleAWTComponent implements Serializable
- serialVersionUID:
- -344337268523697807L
-
Class java.awt.ScrollPane extends Container implements Serializable
- serialVersionUID:
- 7956609840827222915L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOException, HeadlessExceptionReads default serializable fields to stream.- Throws:
HeadlessException
- ifGraphicsEnvironment.isHeadless()
returnstrue
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
GraphicsEnvironment.isHeadless()
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOExceptionWrites default serializable fields to stream.- Throws:
java.io.IOException
-
-
Serialized Fields
-
scrollbarDisplayPolicy
int scrollbarDisplayPolicyThere are 3 ways in which a scroll bar can be displayed. This integer will represent one of these 3 displays - (SCROLLBARS_ALWAYS, SCROLLBARS_AS_NEEDED, SCROLLBARS_NEVER) -
vAdjustable
ScrollPaneAdjustable vAdjustableAn adjustable vertical scrollbar. It is important to note that you must NOT call 3Adjustable
methods, namely:setMinimum()
,setMaximum()
,setVisibleAmount()
.- See Also:
ScrollPane.getVAdjustable()
-
hAdjustable
ScrollPaneAdjustable hAdjustableAn adjustable horizontal scrollbar. It is important to note that you must NOT call 3Adjustable
methods, namely:setMinimum()
,setMaximum()
,setVisibleAmount()
.- See Also:
ScrollPane.getHAdjustable()
-
wheelScrollingEnabled
boolean wheelScrollingEnabledIndicates whether or not scrolling should take place when a MouseWheelEvent is received.- Since:
- 1.4
-
-
Class java.awt.ScrollPane.AccessibleAWTScrollPane extends Container.AccessibleAWTContainer implements Serializable
- serialVersionUID:
- 6100703663886637L
-
Class java.awt.ScrollPaneAdjustable extends java.lang.Object implements Serializable
- serialVersionUID:
- -3359745691033257079L
-
Serialized Fields
-
sp
ScrollPane spTheScrollPane
this object is a scrollbar of. -
orientation
int orientationOrientation of this scrollbar. -
value
int valueThe value of this scrollbar.value
should be greater thanminimum
and less thanmaximum
-
minimum
int minimumThe minimum value of this scrollbar. This value can only be set by theScrollPane
.ATTN: In current implementation
minimum
is always0
. This field can only be altered viasetSpan
method andScrollPane
always calls that method with0
for the minimum.getMinimum
method always returns0
without checking this field. -
maximum
int maximumThe maximum value of this scrollbar. This value can only be set by theScrollPane
. -
visibleAmount
int visibleAmountThe size of the visible portion of this scrollbar. This value can only be set by theScrollPane
. -
unitIncrement
int unitIncrementThe amount by which the scrollbar value will change when going up or down by a line. This value should be a non negative integer. -
blockIncrement
int blockIncrementThe amount by which the scrollbar value will change when going up or down by a page. This value should be a non negative integer. -
adjustmentListener
AdjustmentListener adjustmentListener
-
-
Class java.awt.SystemColor extends Color implements Serializable
- serialVersionUID:
- 4503142729533789064L
-
Serialization Methods
-
readResolve
private java.lang.Object readResolve()The design of theSystemColor
class assumes that theSystemColor
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 ofSystemColor
. See theSystemColor.writeReplace()
method for more information on the serialized form of these objects. -
writeReplace
private java.lang.Object writeReplace() throws java.io.ObjectStreamExceptionReturns a specialized version of theSystemColor
object for writing to the serialized stream.- Serial Data:
- The value field of a serialized
SystemColor
object contains the array index of the system color instead of the rgb data for the system color. This index is used by theSystemColor.readResolve()
method to resolve the deserialized objects back to the original static constant versions to ensure unique instances of eachSystemColor
object. - Throws:
java.io.ObjectStreamException
-
-
Class java.awt.TextArea extends TextComponent implements Serializable
- serialVersionUID:
- 3692302836626095722L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOException, HeadlessExceptionRead the ObjectInputStream.- Throws:
HeadlessException
- ifGraphicsEnvironment.isHeadless()
returnstrue
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
GraphicsEnvironment.isHeadless()
-
-
Serialized Fields
-
rows
int rowsThe number of rows in theTextArea
. This parameter will determine the text area's height. Guaranteed to be non-negative.- See Also:
TextArea.getRows()
,TextArea.setRows(int)
-
columns
int columnsThe number of columns in theTextArea
. 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. -
scrollbarVisibility
int scrollbarVisibilityDetermines which scrollbars are created for the text area. It can be one of four values :SCROLLBARS_BOTH
= both scrollbars.
SCROLLBARS_HORIZONTAL_ONLY
= Horizontal bar only.
SCROLLBARS_VERTICAL_ONLY
= Vertical bar only.
SCROLLBARS_NONE
= No scrollbars.- See Also:
TextArea.getScrollbarVisibility()
-
textAreaSerializedDataVersion
int textAreaSerializedDataVersionThe textArea Serialized Data Version.
-
-
Class java.awt.TextArea.AccessibleAWTTextArea extends TextComponent.AccessibleAWTTextComponent implements Serializable
- serialVersionUID:
- 3472827823632144419L
-
Class java.awt.TextComponent extends Component implements Serializable
- serialVersionUID:
- -2214773872412987419L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOException, HeadlessExceptionRead the ObjectInputStream, and if it isn't null, add a listener to receive text events fired by the TextComponent. Unrecognized keys or values will be ignored.- Throws:
HeadlessException
- ifGraphicsEnvironment.isHeadless()
returnstrue
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
TextComponent.removeTextListener(java.awt.event.TextListener)
,TextComponent.addTextListener(java.awt.event.TextListener)
,GraphicsEnvironment.isHeadless()
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOExceptionWrites default serializable fields to stream. Writes a list of serializable TextListener(s) as optional data. The non-serializable TextListener(s) are detected and no attempt is made to serialize them.- Serial Data:
- Null terminated sequence of zero or more pairs. A pair consists of a String and Object. The String indicates the type of object and is one of the following : textListenerK indicating and TextListener object.
- Throws:
java.io.IOException
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,Component.textListenerK
-
-
Serialized Fields
-
text
java.lang.String textThe value of the text. Anull
value is the same as "". -
editable
boolean editableA boolean indicating whether or not thisTextComponent
is editable. It will betrue
if the text component is editable andfalse
if not.- See Also:
TextComponent.isEditable()
-
selectionStart
int selectionStartThe selection refers to the selected text, and theselectionStart
is the start position of the selected text. -
selectionEnd
int selectionEndThe selection refers to the selected text, and theselectionEnd
is the end position of the selected text. -
backgroundSetByClientCode
boolean backgroundSetByClientCode -
textComponentSerializedDataVersion
int textComponentSerializedDataVersionThe textComponent SerializedDataVersion. -
checkForEnableIM
boolean checkForEnableIM
-
-
Class java.awt.TextComponent.AccessibleAWTTextComponent extends Component.AccessibleAWTComponent implements Serializable
- serialVersionUID:
- 3631432373506317811L
-
Class java.awt.TextField extends TextComponent implements Serializable
- serialVersionUID:
- -2966288784432217853L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOException, HeadlessExceptionRead the ObjectInputStream and if it isn't null, add a listener to receive action events fired by the TextField. Unrecognized keys or values will be ignored.- Throws:
HeadlessException
- ifGraphicsEnvironment.isHeadless()
returnstrue
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
TextField.removeActionListener(ActionListener)
,TextField.addActionListener(ActionListener)
,GraphicsEnvironment.isHeadless()
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOExceptionWrites default serializable fields to stream. Writes a list of serializable ActionListener(s) as optional data. The non-serializable ActionListener(s) are detected and no attempt is made to serialize them.- Serial Data:
- Null terminated sequence of zero or more pairs. A pair consists of a String and Object. The String indicates the type of object and is one of the following : ActionListenerK indicating and ActionListener object.
- Throws:
java.io.IOException
- See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener)
,Component.actionListenerK
-
-
Serialized Fields
-
columns
int columnsThe number of columns in the text field. A column is an approximate average character width that is platform-dependent. Guaranteed to be non-negative. -
echoChar
char echoCharThe echo character, which is used when the user wishes to disguise the characters typed into the text field. The disguises are removed if echoChar =0
. -
textFieldSerializedDataVersion
int textFieldSerializedDataVersionThe textField Serialized Data Version.
-
-
Class java.awt.TextField.AccessibleAWTTextField extends TextComponent.AccessibleAWTTextComponent implements Serializable
- serialVersionUID:
- 6219164359235943158L
-
Class java.awt.Window extends Container implements Serializable
- serialVersionUID:
- 4497834738069338734L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOException, HeadlessExceptionReads theObjectInputStream
and an optional list of listeners to receive various events fired by the component; also reads a list of (possiblynull
) child windows. Unrecognized keys or values will be ignored.- Throws:
HeadlessException
- ifGraphicsEnvironment.isHeadless
returnstrue
java.lang.ClassNotFoundException
java.io.IOException
- See Also:
GraphicsEnvironment.isHeadless()
,Window.writeObject(java.io.ObjectOutputStream)
-
writeObject
private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOExceptionWrites default serializable fields to stream. Writes a list of serializableWindowListener
s andWindowFocusListener
s as optional data. Writes a list of child windows as optional data. Writes a list of icon images as optional data- Serial Data:
null
terminated sequence of 0 or more pairs; the pair consists of aString
and andObject
; theString
indicates the type of object and is one of the following:windowListenerK
indicating aWindowListener
object;windowFocusWindowK
indicating aWindowFocusListener
object;ownedWindowK
indicating a childWindow
object- Throws:
java.io.IOException
- See Also:
AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener)
,Component.windowListenerK
,Component.windowFocusListenerK
,Component.ownedWindowK
,Window.readObject(ObjectInputStream)
-
-
Serialized Fields
-
warningString
java.lang.String warningStringThis represents the warning message that is to be displayed in a non secure window. ie : a window that has a security manager installed for which calling SecurityManager.checkTopLevelWindow() is false. This message can be displayed anywhere in the window.- See Also:
Window.getWarningString()
-
syncLWRequests
boolean syncLWRequests -
state
int stateAn Integer value representing the Window State.- Since:
- 1.2
- See Also:
Window.show()
-
alwaysOnTop
boolean alwaysOnTopA boolean value representing Window always-on-top state- Since:
- 1.5
- See Also:
Window.setAlwaysOnTop(boolean)
,Window.isAlwaysOnTop()
-
modalExclusionType
Dialog.ModalExclusionType modalExclusionType -
focusMgr
java.awt.FocusManager focusMgrUnused. Maintained for serialization backward-compatibility.- Since:
- 1.2
-
focusableWindowState
boolean focusableWindowStateIndicates whether this Window can become the focused Window.- Since:
- 1.4
- See Also:
Window.getFocusableWindowState()
,Window.setFocusableWindowState(boolean)
-
autoRequestFocus
boolean autoRequestFocusIndicates whether this window should receive focus on subsequently being shown (with a call tosetVisible(true)
), or being moved to the front (with a call totoFront()
).- Since:
- 1.7
- See Also:
Window.setAutoRequestFocus(boolean)
,Window.isAutoRequestFocus()
-
opacity
float opacity -
shape
Shape shape -
type
Window.Type typeWindow type. Synchronization: ObjectLock -
windowSerializedDataVersion
int windowSerializedDataVersionThe window serialized data version. -
locationByPlatform
boolean locationByPlatform
-
-
Class java.awt.Window.AccessibleAWTWindow extends Container.AccessibleAWTContainer implements Serializable
- serialVersionUID:
- 4215068635060671780L
-
-
Package java.awt.event
-
Class java.awt.event.ActionEvent extends AWTEvent implements Serializable
- serialVersionUID:
- -7671078796273832149L
-
Serialized Fields
-
actionCommand
java.lang.String actionCommandThe nonlocalized string that gives more details of what actually caused the event. This information is very specific to the component that fired it.- See Also:
ActionEvent.getActionCommand()
-
when
long whenTimestamp of when this event occurred. Because an ActionEvent is a high- level, semantic event, the timestamp is typically the same as an underlying InputEvent.- See Also:
ActionEvent.getWhen()
-
modifiers
int modifiersThis represents the key modifier that was selected, and is used to determine the state of the selected key. If no modifier has been selected it will default to zero.- See Also:
ActionEvent.getModifiers()
-
-
Class java.awt.event.AdjustmentEvent extends AWTEvent implements Serializable
- serialVersionUID:
- 5700290645205279921L
-
Serialized Fields
-
adjustable
Adjustable adjustableThe adjustable object that fired the event.- See Also:
AdjustmentEvent.getAdjustable()
-
value
int valuevalue
will contain the new value of the adjustable object. This value will always be in a range associated adjustable object.- See Also:
AdjustmentEvent.getValue()
-
adjustmentType
int adjustmentTypeTheadjustmentType
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.- See Also:
AdjustmentEvent.getAdjustmentType()
-
isAdjusting
boolean isAdjustingTheisAdjusting
is true if the event is one of the series of multiple adjustment events.- Since:
- 1.4
- See Also:
AdjustmentEvent.getValueIsAdjusting()
-
-
Class java.awt.event.ComponentEvent extends AWTEvent implements Serializable
- serialVersionUID:
- 8101406823902992965L
-
Class java.awt.event.ContainerEvent extends ComponentEvent implements Serializable
- serialVersionUID:
- -4114942250539772041L
-
Serialized Fields
-
child
Component childThe non-null component that is being added or removed from the Container.- See Also:
ContainerEvent.getChild()
-
-
Class java.awt.event.FocusEvent extends ComponentEvent implements Serializable
- serialVersionUID:
- 523753786457416396L
-
Serialized Fields
-
temporary
boolean temporaryA focus event can have two different levels, permanent and temporary. It will be set to true if some operation takes away the focus temporarily and intends on getting it back once the event is completed. Otherwise it will be set to false.- See Also:
FocusEvent.isTemporary()
-
-
Class java.awt.event.HierarchyEvent extends AWTEvent implements Serializable
- serialVersionUID:
- -5337576970038043990L
-
Class java.awt.event.InputEvent extends ComponentEvent implements Serializable
- serialVersionUID:
- -2482525981698309786L
-
Serialized Fields
-
when
long whenThe input event's Time stamp in UTC format. The time stamp indicates when the input event was created.- See Also:
InputEvent.getWhen()
-
modifiers
int modifiersThe state of the modifier mask at the time the input event was fired.
-
-
Class java.awt.event.InputMethodEvent extends AWTEvent implements Serializable
- serialVersionUID:
- 4727190874778922661L
-
Serialization Methods
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.lang.ClassNotFoundException, java.io.IOExceptionInitializes thewhen
field if it is not present in the object input stream. In that case, the field will be initialized by invokingEventQueue.getMostRecentEventTime()
.- Throws:
java.lang.ClassNotFoundException
java.io.IOException
-
-
Serialized Fields
-
when
long whenThe time stamp that indicates when the event was created.- Since:
- 1.4
- See Also:
InputMethodEvent.getWhen()
-
-
Class java.awt.event.InvocationEvent extends AWTEvent implements Serializable
- serialVersionUID:
- 436056344909459450L
-
Serialized Fields
-
runnable
java.lang.Runnable runnableThe Runnable whose run() method will be called. -
notifier
java.lang.Object notifierThe (potentially null) Object whose notifyAll() method will be called immediately after the Runnable.run() method has returned or thrown an exception.- See Also:
InvocationEvent.isDispatched()
-
dispatched
boolean dispatchedIndicates whether therun()
method of therunnable
was executed or not.- Since:
- 1.7
- See Also:
InvocationEvent.isDispatched()
-
catchExceptions
boolean catchExceptionsSet to true if dispatch() catches Throwable and stores it in the exception instance variable. If false, Throwables are propagated up to the EventDispatchThread's dispatch loop. -
exception
java.lang.Exception exceptionThe (potentially null) Exception thrown during execution of the Runnable.run() method. This variable will also be null if a particular instance does not catch exceptions. -
throwable
java.lang.Throwable throwableThe (potentially null) Throwable thrown during execution of the Runnable.run() method. This variable will also be null if a particular instance does not catch exceptions. -
when
long whenThe timestamp of when this event occurred.- See Also:
InvocationEvent.getWhen()
-
-
Class java.awt.event.ItemEvent extends AWTEvent implements Serializable
- serialVersionUID:
- -608708132447206933L
-
Serialized Fields
-
item
java.lang.Object itemThe item whose selection state has changed.- See Also:
ItemEvent.getItem()
-
stateChange
int stateChangestateChange
indicates whether theitem
was selected or deselected.- See Also:
ItemEvent.getStateChange()
-
-
Class java.awt.event.KeyEvent extends InputEvent implements Serializable
- serialVersionUID:
- -2352130953028126954L
-
Serialization Methods
-
Serialized Fields
-
isProxyActive
boolean isProxyActiveStores the state of native event dispatching system - true, if when the event was created event proxying mechanism was active - false, if it was inactive Used in Component.dispatchEventImpl to correctly dispatch events when proxy is active -
keyCode
int keyCodeThe unique value assigned to each of the keys on the keyboard. There is a common set of key codes that can be fired by most keyboards. The symbolic name for a key code should be used rather than the code value itself. -
keyChar
char keyCharkeyChar
is a valid unicode character that is fired by a key or a key combination on a keyboard. -
keyLocation
int keyLocationThe location of the key on the keyboard. Some keys occur more than once on a keyboard, e.g. the left and right shift keys. Additionally, some keys occur on the numeric keypad. This variable is used to distinguish such keys. The only legal values areKEY_LOCATION_UNKNOWN
,KEY_LOCATION_STANDARD
,KEY_LOCATION_LEFT
,KEY_LOCATION_RIGHT
, andKEY_LOCATION_NUMPAD
.- See Also:
KeyEvent.getKeyLocation()
-
-
Class java.awt.event.MouseEvent extends InputEvent implements Serializable
- serialVersionUID:
- -991214153494842848L
-
Serialization Methods
-
Serialized Fields
-
x
int xThe mouse event's x coordinate. The x value is relative to the component that fired the event.- See Also:
MouseEvent.getX()
-
y
int yThe mouse event's y coordinate. The y value is relative to the component that fired the event.- See Also:
MouseEvent.getY()
-
xAbs
int xAbsThe mouse event's x absolute coordinate. In a virtual device multi-screen environment in which the desktop area could span multiple physical screen devices, this coordinate is relative to the virtual coordinate system. Otherwise, this coordinate is relative to the coordinate system associated with the Component's GraphicsConfiguration. -
yAbs
int yAbsThe mouse event's y absolute coordinate. In a virtual device multi-screen environment in which the desktop area could span multiple physical screen devices, this coordinate is relative to the virtual coordinate system. Otherwise, this coordinate is relative to the coordinate system associated with the Component's GraphicsConfiguration. -
clickCount
int clickCountIndicates the number of quick consecutive clicks of a mouse button. clickCount will be valid for only three mouse events :
MOUSE_CLICKED
,MOUSE_PRESSED
andMOUSE_RELEASED
. For the above, theclickCount
will be at least 1. For all other events the count will be 0.- See Also:
MouseEvent.getClickCount().
-
button
int buttonIndicates which, if any, of the mouse buttons has changed state. The valid values are ranged from 0 to the value returned by theMouseInfo.getNumberOfButtons()
method. This range already includes constantsNOBUTTON
,BUTTON1
,BUTTON2
, andBUTTON3
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:- 0 (
NOBUTTON
) - 1 (
BUTTON1
) - 2 (
BUTTON2
)
- 0 (
NOBUTTON
) - 1 (
BUTTON1
) - 2 (
BUTTON2
) - 3 (
BUTTON3
) - 4
- 5
Toolkit.areExtraMouseButtonsEnabled()
disabled by Java then the field may not contain the value larger thanBUTTON3
. - 0 (
-
popupTrigger
boolean popupTriggerA property used to indicate whether a Popup Menu should appear with a certain gestures. IfpopupTrigger
=false
, no popup menu should appear. If it istrue
then a popup menu should appear.- See Also:
PopupMenu
,MouseEvent.isPopupTrigger()
-
-
Class java.awt.event.MouseWheelEvent extends MouseEvent implements Serializable
- serialVersionUID:
- 6459879390515399677L
-
Serialized Fields
-
scrollType
int scrollTypeIndicates what sort of scrolling should take place in response to this event, based on platform settings. Legal values are:- WHEEL_UNIT_SCROLL
- WHEEL_BLOCK_SCROLL
- See Also:
MouseWheelEvent.getScrollType()
-
scrollAmount
int scrollAmountOnly valid for scrollType WHEEL_UNIT_SCROLL. Indicates number of units that should be scrolled per click of mouse wheel rotation, based on platform settings. -
wheelRotation
int wheelRotationIndicates how far the mouse wheel was rotated.- See Also:
MouseWheelEvent.getWheelRotation()
-
preciseWheelRotation
double preciseWheelRotationIndicates how far the mouse wheel was rotated.
-
-
Class java.awt.event.PaintEvent extends ComponentEvent implements Serializable
- serialVersionUID:
- 1267492026433337593L
-
Serialized Fields
-
updateRect
Rectangle updateRectThis is the rectangle that represents the area on the source component that requires a repaint. This rectangle should be non null.
-
-
Class java.awt.event.TextEvent extends AWTEvent implements Serializable
- serialVersionUID:
- 6269902291250941179L
-
Class java.awt.event.WindowEvent extends ComponentEvent implements Serializable
- serialVersionUID:
- -1567959133147912127L
-