Serialized Form


Package java.applet

Class java.applet.Applet sample code for java.applet.Applet definition code for java.applet.Applet extends Panel sample code for java.awt.Panel definition code for java.awt.Panel implements Serializable

serialVersionUID: -5836846270535785031L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Read an applet from an object input stream.

Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
Since:
1.4
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless()
Serialized Fields

accessibleContext

AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext  accessibleContext

Class java.applet.Applet.AccessibleApplet sample code for java.applet.Applet.AccessibleApplet definition code for java.applet.Applet.AccessibleApplet extends Panel.AccessibleAWTPanel sample code for java.awt.Panel.AccessibleAWTPanel definition code for java.awt.Panel.AccessibleAWTPanel implements Serializable

serialVersionUID: 8127374778187708896L


Package java.awt

Class java.awt.AWTError sample code for java.awt.AWTError definition code for java.awt.AWTError extends Error sample code for java.lang.Error definition code for java.lang.Error implements Serializable

serialVersionUID: -1819846354050686206L

Class java.awt.AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent extends EventObject sample code for java.util.EventObject definition code for java.util.EventObject implements Serializable

serialVersionUID: -1825314779160409405L

Serialized Fields

bdata

byte[] bdata

id

int id
The event's id.

 
See Also:
AWTEvent.getID() sample code for java.awt.AWTEvent.getID() definition code for java.awt.AWTEvent.getID() , AWTEvent.AWTEvent(java.lang.Object, int) sample code for java.awt.AWTEvent.AWTEvent(java.lang.Object, int) definition code for java.awt.AWTEvent.AWTEvent(java.lang.Object, int)

consumed

boolean consumed
Controls 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() sample code for java.awt.AWTEvent.consume() definition code for java.awt.AWTEvent.consume() , AWTEvent.isConsumed() sample code for java.awt.AWTEvent.isConsumed() definition code for java.awt.AWTEvent.isConsumed()

Class java.awt.AWTException sample code for java.awt.AWTException definition code for java.awt.AWTException extends Exception sample code for java.lang.Exception definition code for java.lang.Exception implements Serializable

serialVersionUID: -1900414231151323879L

Class java.awt.AWTKeyStroke sample code for java.awt.AWTKeyStroke definition code for java.awt.AWTKeyStroke extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -6430539691155161871L

Serialization Methods

readResolve

protected Object sample code for java.lang.Object definition code for java.lang.Object  readResolve()
                      throws ObjectStreamException sample code for java.io.ObjectStreamException definition code for java.io.ObjectStreamException 
Returns a cached instance of AWTKeyStroke (or a subclass of AWTKeyStroke) which is equal to this instance.

Throws:
ObjectStreamException sample code for java.io.ObjectStreamException definition code for java.io.ObjectStreamException
Serialized Fields

keyChar

char keyChar

keyCode

int keyCode

modifiers

int modifiers

onKeyRelease

boolean onKeyRelease

Class java.awt.AWTPermission sample code for java.awt.AWTPermission definition code for java.awt.AWTPermission extends BasicPermission sample code for java.security.BasicPermission definition code for java.security.BasicPermission implements Serializable

serialVersionUID: 8890392402588814465L

Class java.awt.BorderLayout sample code for java.awt.BorderLayout definition code for java.awt.BorderLayout extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -8658291919501921765L

Serialized Fields

hgap

int hgap
Constructs a border layout with the horizontal gaps between components. The horizontal gap is specified by hgap.

 
See Also:
BorderLayout.getHgap() sample code for java.awt.BorderLayout.getHgap() definition code for java.awt.BorderLayout.getHgap() , BorderLayout.setHgap(int) sample code for java.awt.BorderLayout.setHgap(int) definition code for java.awt.BorderLayout.setHgap(int)

vgap

int vgap
Constructs a border layout with the vertical gaps between components. The vertical gap is specified by vgap.

 
See Also:
BorderLayout.getVgap() sample code for java.awt.BorderLayout.getVgap() definition code for java.awt.BorderLayout.getVgap() , BorderLayout.setVgap(int) sample code for java.awt.BorderLayout.setVgap(int) definition code for java.awt.BorderLayout.setVgap(int)

north

Component sample code for java.awt.Component definition code for java.awt.Component  north
Constant to specify components location to be the north portion of the border layout.

 
See Also:
BorderLayout.getChild(String, boolean) sample code for java.awt.BorderLayout.getChild(java.lang.String, boolean) definition code for java.awt.BorderLayout.getChild(java.lang.String, boolean) , BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object) sample code for java.awt.BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object) definition code for java.awt.BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object) , BorderLayout.getLayoutAlignmentX(java.awt.Container) sample code for java.awt.BorderLayout.getLayoutAlignmentX(java.awt.Container) definition code for java.awt.BorderLayout.getLayoutAlignmentX(java.awt.Container) , BorderLayout.getLayoutAlignmentY(java.awt.Container) sample code for java.awt.BorderLayout.getLayoutAlignmentY(java.awt.Container) definition code for java.awt.BorderLayout.getLayoutAlignmentY(java.awt.Container) , BorderLayout.removeLayoutComponent(java.awt.Component) sample code for java.awt.BorderLayout.removeLayoutComponent(java.awt.Component) definition code for java.awt.BorderLayout.removeLayoutComponent(java.awt.Component)

west

Component sample code for java.awt.Component definition code for java.awt.Component  west
Constant to specify components location to be the west portion of the border layout.

 
See Also:
BorderLayout.getChild(String, boolean) sample code for java.awt.BorderLayout.getChild(java.lang.String, boolean) definition code for java.awt.BorderLayout.getChild(java.lang.String, boolean) , BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object) sample code for java.awt.BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object) definition code for java.awt.BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object) , BorderLayout.getLayoutAlignmentX(java.awt.Container) sample code for java.awt.BorderLayout.getLayoutAlignmentX(java.awt.Container) definition code for java.awt.BorderLayout.getLayoutAlignmentX(java.awt.Container) , BorderLayout.getLayoutAlignmentY(java.awt.Container) sample code for java.awt.BorderLayout.getLayoutAlignmentY(java.awt.Container) definition code for java.awt.BorderLayout.getLayoutAlignmentY(java.awt.Container) , BorderLayout.removeLayoutComponent(java.awt.Component) sample code for java.awt.BorderLayout.removeLayoutComponent(java.awt.Component) definition code for java.awt.BorderLayout.removeLayoutComponent(java.awt.Component)

east

Component sample code for java.awt.Component definition code for java.awt.Component  east
Constant to specify components location to be the east portion of the border layout.

 
See Also:
BorderLayout.getChild(String, boolean) sample code for java.awt.BorderLayout.getChild(java.lang.String, boolean) definition code for java.awt.BorderLayout.getChild(java.lang.String, boolean) , BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object) sample code for java.awt.BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object) definition code for java.awt.BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object) , BorderLayout.getLayoutAlignmentX(java.awt.Container) sample code for java.awt.BorderLayout.getLayoutAlignmentX(java.awt.Container) definition code for java.awt.BorderLayout.getLayoutAlignmentX(java.awt.Container) , BorderLayout.getLayoutAlignmentY(java.awt.Container) sample code for java.awt.BorderLayout.getLayoutAlignmentY(java.awt.Container) definition code for java.awt.BorderLayout.getLayoutAlignmentY(java.awt.Container) , BorderLayout.removeLayoutComponent(java.awt.Component) sample code for java.awt.BorderLayout.removeLayoutComponent(java.awt.Component) definition code for java.awt.BorderLayout.removeLayoutComponent(java.awt.Component)

south

Component sample code for java.awt.Component definition code for java.awt.Component  south
Constant to specify components location to be the south portion of the border layout.

 
See Also:
BorderLayout.getChild(String, boolean) sample code for java.awt.BorderLayout.getChild(java.lang.String, boolean) definition code for java.awt.BorderLayout.getChild(java.lang.String, boolean) , BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object) sample code for java.awt.BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object) definition code for java.awt.BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object) , BorderLayout.getLayoutAlignmentX(java.awt.Container) sample code for java.awt.BorderLayout.getLayoutAlignmentX(java.awt.Container) definition code for java.awt.BorderLayout.getLayoutAlignmentX(java.awt.Container) , BorderLayout.getLayoutAlignmentY(java.awt.Container) sample code for java.awt.BorderLayout.getLayoutAlignmentY(java.awt.Container) definition code for java.awt.BorderLayout.getLayoutAlignmentY(java.awt.Container) , BorderLayout.removeLayoutComponent(java.awt.Component) sample code for java.awt.BorderLayout.removeLayoutComponent(java.awt.Component) definition code for java.awt.BorderLayout.removeLayoutComponent(java.awt.Component)

center

Component sample code for java.awt.Component definition code for java.awt.Component  center
Constant to specify components location to be the center portion of the border layout.

 
See Also:
BorderLayout.getChild(String, boolean) sample code for java.awt.BorderLayout.getChild(java.lang.String, boolean) definition code for java.awt.BorderLayout.getChild(java.lang.String, boolean) , BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object) sample code for java.awt.BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object) definition code for java.awt.BorderLayout.addLayoutComponent(java.awt.Component, java.lang.Object) , BorderLayout.getLayoutAlignmentX(java.awt.Container) sample code for java.awt.BorderLayout.getLayoutAlignmentX(java.awt.Container) definition code for java.awt.BorderLayout.getLayoutAlignmentX(java.awt.Container) , BorderLayout.getLayoutAlignmentY(java.awt.Container) sample code for java.awt.BorderLayout.getLayoutAlignmentY(java.awt.Container) definition code for java.awt.BorderLayout.getLayoutAlignmentY(java.awt.Container) , BorderLayout.removeLayoutComponent(java.awt.Component) sample code for java.awt.BorderLayout.removeLayoutComponent(java.awt.Component) definition code for java.awt.BorderLayout.removeLayoutComponent(java.awt.Component)

firstLine

Component sample code for java.awt.Component definition code for java.awt.Component  firstLine
A 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 the 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.

 

lastLine

Component sample code for java.awt.Component definition code for java.awt.Component  lastLine
A relative positioning constant, that can be used instead of north, south, east, west or center. Please read Description for firstLine.

 

firstItem

Component sample code for java.awt.Component definition code for java.awt.Component  firstItem
A relative positioning constant, that can be used instead of north, south, east, west or center. Please read Description for firstLine.

 

lastItem

Component sample code for java.awt.Component definition code for java.awt.Component  lastItem
A relative positioning constant, that can be used instead of north, south, east, west or center. Please read Description for firstLine.

 

Class java.awt.Button sample code for java.awt.Button definition code for java.awt.Button extends Component sample code for java.awt.Component definition code for java.awt.Component implements Serializable

serialVersionUID: -8774683716313001058L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Reads the 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.

Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless returns true
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
Button.removeActionListener(ActionListener) sample code for java.awt.Button.removeActionListener(java.awt.event.ActionListener) definition code for java.awt.Button.removeActionListener(java.awt.event.ActionListener) , Button.addActionListener(ActionListener) sample code for java.awt.Button.addActionListener(java.awt.event.ActionListener) definition code for java.awt.Button.addActionListener(java.awt.event.ActionListener) , GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , Button.writeObject(ObjectOutputStream) sample code for java.awt.Button.writeObject(java.io.ObjectOutputStream) definition code for java.awt.Button.writeObject(java.io.ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes default serializable fields to stream. Writes a list of serializable ActionListeners as optional data. The non-serializable ActionListeners are detected and no attempt is made to serialize them.

Serial Data:
null terminated sequence of 0 or more pairs: the pair consists of a String and an Object; the String indicates the type of object and is one of the following: actionListenerK indicating an ActionListener object
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) sample code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) definition code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) , Component.actionListenerK sample code for java.awt.Component.actionListenerK definition code for java.awt.Component.actionListenerK , Button.readObject(ObjectInputStream) sample code for java.awt.Button.readObject(java.io.ObjectInputStream) definition code for java.awt.Button.readObject(java.io.ObjectInputStream)
Serialized Fields

label

String sample code for java.lang.String definition code for java.lang.String  label
The button's label. This value may be null.

 
See Also:
Button.getLabel() sample code for java.awt.Button.getLabel() definition code for java.awt.Button.getLabel() , setLabel()

actionCommand

String sample code for java.lang.String definition code for java.lang.String  actionCommand
The action to be performed once a button has been pressed. This value may be null.

 
See Also:
Button.getActionCommand() sample code for java.awt.Button.getActionCommand() definition code for java.awt.Button.getActionCommand() , setActionCommand()

buttonSerializedDataVersion

int buttonSerializedDataVersion

Class java.awt.Button.AccessibleAWTButton sample code for java.awt.Button.AccessibleAWTButton definition code for java.awt.Button.AccessibleAWTButton extends Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent implements Serializable

serialVersionUID: -5932203980244017102L

Class java.awt.Canvas sample code for java.awt.Canvas definition code for java.awt.Canvas extends Component sample code for java.awt.Component definition code for java.awt.Component implements Serializable

serialVersionUID: -2284879212465893870L

Class java.awt.Canvas.AccessibleAWTCanvas sample code for java.awt.Canvas.AccessibleAWTCanvas definition code for java.awt.Canvas.AccessibleAWTCanvas extends Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent implements Serializable

serialVersionUID: -6325592262103146699L

Class java.awt.CardLayout sample code for java.awt.CardLayout definition code for java.awt.CardLayout extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -4328196481005934313L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException 
Reads serializable fields from stream.

Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes serializable fields to stream.

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
Serialized Fields

currentCard

int currentCard

hgap

int hgap

tab

Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable <K,V> tab
deprectated, for forward compatibility only

vector

Vector sample code for java.util.Vector definition code for java.util.Vector <E> vector

vgap

int vgap

Class java.awt.Checkbox sample code for java.awt.Checkbox definition code for java.awt.Checkbox extends Component sample code for java.awt.Component definition code for java.awt.Component implements Serializable

serialVersionUID: 7270714317450821763L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Reads the ObjectInputStream and if it isn't null adds a listener to receive item events fired by the Checkbox. Unrecognized keys or values will be ignored.

Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless returns true
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
Checkbox.removeItemListener(ItemListener) sample code for java.awt.Checkbox.removeItemListener(java.awt.event.ItemListener) definition code for java.awt.Checkbox.removeItemListener(java.awt.event.ItemListener) , Checkbox.addItemListener(ItemListener) sample code for java.awt.Checkbox.addItemListener(java.awt.event.ItemListener) definition code for java.awt.Checkbox.addItemListener(java.awt.event.ItemListener) , GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , Checkbox.writeObject(ObjectOutputStream) sample code for java.awt.Checkbox.writeObject(java.io.ObjectOutputStream) definition code for java.awt.Checkbox.writeObject(java.io.ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes default serializable fields to stream. Writes a list of serializable ItemListeners as optional data. The non-serializable ItemListeners are detected and no attempt is made to serialize them.

Serial Data:
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
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) sample code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) definition code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) , Component.itemListenerK sample code for java.awt.Component.itemListenerK definition code for java.awt.Component.itemListenerK , Checkbox.readObject(ObjectInputStream) sample code for java.awt.Checkbox.readObject(java.io.ObjectInputStream) definition code for java.awt.Checkbox.readObject(java.io.ObjectInputStream)
Serialized Fields

label

String sample code for java.lang.String definition code for java.lang.String  label
The label of the Checkbox. This field can be null.

 
See Also:
Checkbox.getLabel() sample code for java.awt.Checkbox.getLabel() definition code for java.awt.Checkbox.getLabel() , #setLabel(label)

state

boolean state
The state of the Checkbox.

 
See Also:
Checkbox.getState() sample code for java.awt.Checkbox.getState() definition code for java.awt.Checkbox.getState() , #setState(state)

group

CheckboxGroup sample code for java.awt.CheckboxGroup definition code for java.awt.CheckboxGroup  group
The check box group. This field can be null indicating that the checkbox is not a group checkbox.

 
See Also:
#getCheckBoxGroup(), #setCheckBoxGroup(CheckBoxGroup)

checkboxSerializedDataVersion

int checkboxSerializedDataVersion

Class java.awt.Checkbox.AccessibleAWTCheckbox sample code for java.awt.Checkbox.AccessibleAWTCheckbox definition code for java.awt.Checkbox.AccessibleAWTCheckbox extends Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent implements Serializable

serialVersionUID: 7881579233144754107L

Class java.awt.CheckboxGroup sample code for java.awt.CheckboxGroup definition code for java.awt.CheckboxGroup extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: 3729780091441768983L

Serialized Fields

selectedCheckbox

Checkbox sample code for java.awt.Checkbox definition code for java.awt.Checkbox  selectedCheckbox
The current choice.

 
See Also:
CheckboxGroup.getCurrent() sample code for java.awt.CheckboxGroup.getCurrent() definition code for java.awt.CheckboxGroup.getCurrent() , CheckboxGroup.setCurrent(Checkbox) sample code for java.awt.CheckboxGroup.setCurrent(java.awt.Checkbox) definition code for java.awt.CheckboxGroup.setCurrent(java.awt.Checkbox)

Class java.awt.CheckboxMenuItem sample code for java.awt.CheckboxMenuItem definition code for java.awt.CheckboxMenuItem extends MenuItem sample code for java.awt.MenuItem definition code for java.awt.MenuItem implements Serializable

serialVersionUID: 6190621106981774043L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException 
Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes default serializable fields to stream. Writes a list of serializable ItemListeners as optional data. The non-serializable ItemListeners are detected and no attempt is made to serialize them.

Serial Data:
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
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) sample code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) definition code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) , Component.itemListenerK sample code for java.awt.Component.itemListenerK definition code for java.awt.Component.itemListenerK , CheckboxMenuItem.readObject(ObjectInputStream) sample code for java.awt.CheckboxMenuItem.readObject(java.io.ObjectInputStream) definition code for java.awt.CheckboxMenuItem.readObject(java.io.ObjectInputStream)
Serialized Fields

state

boolean state
The state of a checkbox menu item

 
See Also:
CheckboxMenuItem.getState() sample code for java.awt.CheckboxMenuItem.getState() definition code for java.awt.CheckboxMenuItem.getState() , CheckboxMenuItem.setState(boolean) sample code for java.awt.CheckboxMenuItem.setState(boolean) definition code for java.awt.CheckboxMenuItem.setState(boolean)

checkboxMenuItemSerializedDataVersion

int checkboxMenuItemSerializedDataVersion

Class java.awt.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem sample code for java.awt.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem definition code for java.awt.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem extends MenuItem.AccessibleAWTMenuItem sample code for java.awt.MenuItem.AccessibleAWTMenuItem definition code for java.awt.MenuItem.AccessibleAWTMenuItem implements Serializable

serialVersionUID: -1122642964303476L

Class java.awt.Choice sample code for java.awt.Choice definition code for java.awt.Choice extends Component sample code for java.awt.Component definition code for java.awt.Component implements Serializable

serialVersionUID: -4075310674757313071L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Reads the 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.

Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless returns true
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
Choice.removeItemListener(ItemListener) sample code for java.awt.Choice.removeItemListener(java.awt.event.ItemListener) definition code for java.awt.Choice.removeItemListener(java.awt.event.ItemListener) , Choice.addItemListener(ItemListener) sample code for java.awt.Choice.addItemListener(java.awt.event.ItemListener) definition code for java.awt.Choice.addItemListener(java.awt.event.ItemListener) , GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , Choice.writeObject(ObjectOutputStream) sample code for java.awt.Choice.writeObject(java.io.ObjectOutputStream) definition code for java.awt.Choice.writeObject(java.io.ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes default serializable fields to stream. Writes a list of serializable ItemListeners as optional data. The non-serializable ItemListeners are detected and no attempt is made to serialize them.

Serial Data:
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
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) sample code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) definition code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) , Component.itemListenerK sample code for java.awt.Component.itemListenerK definition code for java.awt.Component.itemListenerK , Choice.readObject(ObjectInputStream) sample code for java.awt.Choice.readObject(java.io.ObjectInputStream) definition code for java.awt.Choice.readObject(java.io.ObjectInputStream)
Serialized Fields

pItems

Vector sample code for java.util.Vector definition code for java.util.Vector <E> pItems
The items for the Choice. This can be a null value.

 
See Also:
Choice.add(String) sample code for java.awt.Choice.add(java.lang.String) definition code for java.awt.Choice.add(java.lang.String) , Choice.addItem(String) sample code for java.awt.Choice.addItem(java.lang.String) definition code for java.awt.Choice.addItem(java.lang.String) , Choice.getItem(int) sample code for java.awt.Choice.getItem(int) definition code for java.awt.Choice.getItem(int) , Choice.getItemCount() sample code for java.awt.Choice.getItemCount() definition code for java.awt.Choice.getItemCount() , Choice.insert(String, int) sample code for java.awt.Choice.insert(java.lang.String, int) definition code for java.awt.Choice.insert(java.lang.String, int) , Choice.remove(String) sample code for java.awt.Choice.remove(java.lang.String) definition code for java.awt.Choice.remove(java.lang.String)

selectedIndex

int selectedIndex
The index of the current choice for this Choice or -1 if nothing is selected.

 
See Also:
Choice.getSelectedItem() sample code for java.awt.Choice.getSelectedItem() definition code for java.awt.Choice.getSelectedItem() , Choice.select(int) sample code for java.awt.Choice.select(int) definition code for java.awt.Choice.select(int)

choiceSerializedDataVersion

int choiceSerializedDataVersion

Class java.awt.Choice.AccessibleAWTChoice sample code for java.awt.Choice.AccessibleAWTChoice definition code for java.awt.Choice.AccessibleAWTChoice extends Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent implements Serializable

serialVersionUID: 7175603582428509322L

Class java.awt.Color sample code for java.awt.Color definition code for java.awt.Color extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: 118526816881161077L

Serialized Fields

value

int value
The color value.

 
See Also:
Color.getRGB() sample code for java.awt.Color.getRGB() definition code for java.awt.Color.getRGB()

frgbvalue

float[] frgbvalue
The color value in the default sRGB 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.

 
See Also:
Color.getRGBColorComponents(float[]) sample code for java.awt.Color.getRGBColorComponents(float[]) definition code for java.awt.Color.getRGBColorComponents(float[]) , Color.getRGBComponents(float[]) sample code for java.awt.Color.getRGBComponents(float[]) definition code for java.awt.Color.getRGBComponents(float[])

fvalue

float[] fvalue
The color value in the native 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.

 
See Also:
Color.getRGBColorComponents(float[]) sample code for java.awt.Color.getRGBColorComponents(float[]) definition code for java.awt.Color.getRGBColorComponents(float[]) , Color.getRGBComponents(float[]) sample code for java.awt.Color.getRGBComponents(float[]) definition code for java.awt.Color.getRGBComponents(float[])

falpha

float falpha
The alpha value as a float component. If frgbvalue is null, this is not valid data, so compute from the int color value.

 
See Also:
Color.getRGBComponents(float[]) sample code for java.awt.Color.getRGBComponents(float[]) definition code for java.awt.Color.getRGBComponents(float[]) , Color.getComponents(float[]) sample code for java.awt.Color.getComponents(float[]) definition code for java.awt.Color.getComponents(float[])

cs

ColorSpace sample code for java.awt.color.ColorSpace definition code for java.awt.color.ColorSpace  cs
The ColorSpace. If null, then it's default is sRGB.

 
See Also:
Color.getColor(java.lang.String) sample code for java.awt.Color.getColor(java.lang.String) definition code for java.awt.Color.getColor(java.lang.String) , Color.getColorSpace() sample code for java.awt.Color.getColorSpace() definition code for java.awt.Color.getColorSpace() , Color.getColorComponents(float[]) sample code for java.awt.Color.getColorComponents(float[]) definition code for java.awt.Color.getColorComponents(float[])

Class java.awt.Component sample code for java.awt.Component definition code for java.awt.Component extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -7644114512714619750L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException 
Reads the 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.

Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
Component.writeObject(ObjectOutputStream) sample code for java.awt.Component.writeObject(java.io.ObjectOutputStream) definition code for java.awt.Component.writeObject(java.io.ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes 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 a String and an Object; the String indicates the type of object and is one of the following (as of 1.4): componentListenerK indicating an ComponentListener object; focusListenerK indicating an FocusListener object; keyListenerK indicating an KeyListener object; mouseListenerK indicating an MouseListener object; mouseMotionListenerK indicating an MouseMotionListener object; inputListenerK indicating an InputListener object; hierarchyListenerK indicating an HierarchyListener object; hierarchyBoundsListenerK indicating an HierarchyBoundsListener object; mouseWheelListenerK indicating an MouseWheelListener object, an optional ComponentOrientation (after inputMethodListener, as of 1.2)
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) sample code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) definition code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) , Component.componentListenerK sample code for java.awt.Component.componentListenerK definition code for java.awt.Component.componentListenerK , Component.focusListenerK sample code for java.awt.Component.focusListenerK definition code for java.awt.Component.focusListenerK , Component.keyListenerK sample code for java.awt.Component.keyListenerK definition code for java.awt.Component.keyListenerK , Component.mouseListenerK sample code for java.awt.Component.mouseListenerK definition code for java.awt.Component.mouseListenerK , Component.mouseMotionListenerK sample code for java.awt.Component.mouseMotionListenerK definition code for java.awt.Component.mouseMotionListenerK , #inputListenerK, Component.hierarchyListenerK sample code for java.awt.Component.hierarchyListenerK definition code for java.awt.Component.hierarchyListenerK , Component.hierarchyBoundsListenerK sample code for java.awt.Component.hierarchyBoundsListenerK definition code for java.awt.Component.hierarchyBoundsListenerK , Component.mouseWheelListenerK sample code for java.awt.Component.mouseWheelListenerK definition code for java.awt.Component.mouseWheelListenerK , Component.readObject(ObjectInputStream) sample code for java.awt.Component.readObject(java.io.ObjectInputStream) definition code for java.awt.Component.readObject(java.io.ObjectInputStream)
Serialized Fields

x

int x
The x position of the component in the parent's coordinate system.

 
See Also:
Component.getLocation() sample code for java.awt.Component.getLocation() definition code for java.awt.Component.getLocation()

y

int y
The y position of the component in the parent's coordinate system.

 
See Also:
Component.getLocation() sample code for java.awt.Component.getLocation() definition code for java.awt.Component.getLocation()

width

int width
The width of the component.

 
See Also:
Component.getSize() sample code for java.awt.Component.getSize() definition code for java.awt.Component.getSize()

height

int height
The height of the component.

 
See Also:
Component.getSize() sample code for java.awt.Component.getSize() definition code for java.awt.Component.getSize()

foreground

Color sample code for java.awt.Color definition code for java.awt.Color  foreground
The foreground color for this component. foreground can be null.

 
See Also:
Component.getForeground() sample code for java.awt.Component.getForeground() definition code for java.awt.Component.getForeground() , Component.setForeground(java.awt.Color) sample code for java.awt.Component.setForeground(java.awt.Color) definition code for java.awt.Component.setForeground(java.awt.Color)

background

Color sample code for java.awt.Color definition code for java.awt.Color  background
The background color for this component. background can be null.

 
See Also:
Component.getBackground() sample code for java.awt.Component.getBackground() definition code for java.awt.Component.getBackground() , Component.setBackground(java.awt.Color) sample code for java.awt.Component.setBackground(java.awt.Color) definition code for java.awt.Component.setBackground(java.awt.Color)

font

Font sample code for java.awt.Font definition code for java.awt.Font  font
The font used by this component. The font can be null.

 
See Also:
Component.getFont() sample code for java.awt.Component.getFont() definition code for java.awt.Component.getFont() , Component.setFont(java.awt.Font) sample code for java.awt.Component.setFont(java.awt.Font) definition code for java.awt.Component.setFont(java.awt.Font)

peerFont

Font sample code for java.awt.Font definition code for java.awt.Font  peerFont
The font which the peer is currently using. (null if no peer exists.)


cursor

Cursor sample code for java.awt.Cursor definition code for java.awt.Cursor  cursor
The cursor displayed when pointer is over this component. This value can be null.

 
See Also:
Component.getCursor() sample code for java.awt.Component.getCursor() definition code for java.awt.Component.getCursor() , Component.setCursor(java.awt.Cursor) sample code for java.awt.Component.setCursor(java.awt.Cursor) definition code for java.awt.Component.setCursor(java.awt.Cursor)

locale

Locale sample code for java.util.Locale definition code for java.util.Locale  locale
The locale for the component.

 
See Also:
Component.getLocale() sample code for java.awt.Component.getLocale() definition code for java.awt.Component.getLocale() , Component.setLocale(java.util.Locale) sample code for java.awt.Component.setLocale(java.util.Locale) definition code for java.awt.Component.setLocale(java.util.Locale)

ignoreRepaint

boolean ignoreRepaint
True when the object should ignore all repaint events.

 
Since:
1.4
See Also:
Component.setIgnoreRepaint(boolean) sample code for java.awt.Component.setIgnoreRepaint(boolean) definition code for java.awt.Component.setIgnoreRepaint(boolean) , Component.getIgnoreRepaint() sample code for java.awt.Component.getIgnoreRepaint() definition code for java.awt.Component.getIgnoreRepaint()

visible

boolean visible
True when the object is visible. An object that is not visible is not drawn on the screen.

 
See Also:
Component.isVisible() sample code for java.awt.Component.isVisible() definition code for java.awt.Component.isVisible() , Component.setVisible(boolean) sample code for java.awt.Component.setVisible(boolean) definition code for java.awt.Component.setVisible(boolean)

enabled

boolean enabled
True when the object is enabled. An object that is not enabled does not interact with the user.

 
See Also:
Component.isEnabled() sample code for java.awt.Component.isEnabled() definition code for java.awt.Component.isEnabled() , Component.setEnabled(boolean) sample code for java.awt.Component.setEnabled(boolean) definition code for java.awt.Component.setEnabled(boolean)

valid

boolean valid
True 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.

 
See Also:
Component.isValid() sample code for java.awt.Component.isValid() definition code for java.awt.Component.isValid() , Component.validate() sample code for java.awt.Component.validate() definition code for java.awt.Component.validate() , Component.invalidate() sample code for java.awt.Component.invalidate() definition code for java.awt.Component.invalidate()

dropTarget

DropTarget sample code for java.awt.dnd.DropTarget definition code for java.awt.dnd.DropTarget  dropTarget
The DropTarget associated with this component.

 
Since:
1.2
See Also:
Component.setDropTarget(java.awt.dnd.DropTarget) sample code for java.awt.Component.setDropTarget(java.awt.dnd.DropTarget) definition code for java.awt.Component.setDropTarget(java.awt.dnd.DropTarget) , Component.getDropTarget() sample code for java.awt.Component.getDropTarget() definition code for java.awt.Component.getDropTarget()

popups

Vector sample code for java.util.Vector definition code for java.util.Vector <E> popups
 
See Also:
Component.add(java.awt.PopupMenu) sample code for java.awt.Component.add(java.awt.PopupMenu) definition code for java.awt.Component.add(java.awt.PopupMenu)

name

String sample code for java.lang.String definition code for java.lang.String  name
A component's name. This field can be null.

 
See Also:
Component.getName() sample code for java.awt.Component.getName() definition code for java.awt.Component.getName() , Component.setName(String) sample code for java.awt.Component.setName(java.lang.String) definition code for java.awt.Component.setName(java.lang.String)

nameExplicitlySet

boolean nameExplicitlySet
A 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() sample code for java.awt.Component.getName() definition code for java.awt.Component.getName() , Component.setName(String) sample code for java.awt.Component.setName(java.lang.String) definition code for java.awt.Component.setName(java.lang.String)

focusable

boolean focusable
Indicates whether this Component can be focused.

 
Since:
1.4
See Also:
Component.setFocusable(boolean) sample code for java.awt.Component.setFocusable(boolean) definition code for java.awt.Component.setFocusable(boolean) , Component.isFocusable() sample code for java.awt.Component.isFocusable() definition code for java.awt.Component.isFocusable()

isFocusTraversableOverridden

int isFocusTraversableOverridden
Tracks whether this Component is relying on default focus travesability.

 
Since:
1.4

focusTraversalKeys

Set sample code for java.util.Set definition code for java.util.Set <E>[] focusTraversalKeys
The 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.

 
Since:
1.4
See Also:
Component.setFocusTraversalKeys(int, java.util.Set) sample code for java.awt.Component.setFocusTraversalKeys(int, java.util.Set) definition code for java.awt.Component.setFocusTraversalKeys(int, java.util.Set) , Component.getFocusTraversalKeys(int) sample code for java.awt.Component.getFocusTraversalKeys(int) definition code for java.awt.Component.getFocusTraversalKeys(int)

focusTraversalKeysEnabled

boolean focusTraversalKeysEnabled
Indicates 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) sample code for java.awt.Component.setFocusTraversalKeysEnabled(boolean) definition code for java.awt.Component.setFocusTraversalKeysEnabled(boolean) , Component.getFocusTraversalKeysEnabled() sample code for java.awt.Component.getFocusTraversalKeysEnabled() definition code for java.awt.Component.getFocusTraversalKeysEnabled()

minSize

Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  minSize
Minimum size. (This field perhaps should have been transient).

 

minSizeSet

boolean minSizeSet
Whether or not setMinimumSize has been invoked with a non-null value.


prefSize

Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  prefSize
Preferred size. (This field perhaps should have been transient).

 

prefSizeSet

boolean prefSizeSet
Whether or not setPreferredSize has been invoked with a non-null value.


maxSize

Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  maxSize
Maximum size

 

maxSizeSet

boolean maxSizeSet
Whether or not setMaximumSize has been invoked with a non-null value.


newEventsOnly

boolean newEventsOnly
newEventsOnly will be true if the event is one of the event types enabled for the component. It will then allow for normal processing to continue. If it is false the event is passed to the component's parent and up the ancestor tree until the event has been consumed.

 
See Also:
Component.dispatchEvent(java.awt.AWTEvent) sample code for java.awt.Component.dispatchEvent(java.awt.AWTEvent) definition code for java.awt.Component.dispatchEvent(java.awt.AWTEvent)

eventMask

long eventMask
The 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.

 
See Also:
Component.enableInputMethods(boolean) sample code for java.awt.Component.enableInputMethods(boolean) definition code for java.awt.Component.enableInputMethods(boolean) , AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent

changeSupport

PropertyChangeSupport sample code for java.beans.PropertyChangeSupport definition code for java.beans.PropertyChangeSupport  changeSupport
If any PropertyChangeListeners have been registered, the changeSupport field describes them.

 
Since:
1.2
See Also:
Component.addPropertyChangeListener(java.beans.PropertyChangeListener) sample code for java.awt.Component.addPropertyChangeListener(java.beans.PropertyChangeListener) definition code for java.awt.Component.addPropertyChangeListener(java.beans.PropertyChangeListener) , Component.removePropertyChangeListener(java.beans.PropertyChangeListener) sample code for java.awt.Component.removePropertyChangeListener(java.beans.PropertyChangeListener) definition code for java.awt.Component.removePropertyChangeListener(java.beans.PropertyChangeListener) , Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) sample code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for java.awt.Component.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)

isPacked

boolean isPacked

boundsOp

int boundsOp
Pseudoparameter 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.


componentSerializedDataVersion

int componentSerializedDataVersion
Component Serialized Data Version.

 

accessibleContext

AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext  accessibleContext

Class java.awt.Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent extends AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext implements Serializable

serialVersionUID: 642321655757800191L

Serialized Fields

accessibleAWTComponentHandler

ComponentListener sample code for java.awt.event.ComponentListener definition code for java.awt.event.ComponentListener  accessibleAWTComponentHandler

accessibleAWTFocusHandler

FocusListener sample code for java.awt.event.FocusListener definition code for java.awt.event.FocusListener  accessibleAWTFocusHandler

Class java.awt.ComponentOrientation sample code for java.awt.ComponentOrientation definition code for java.awt.ComponentOrientation extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

Serialized Fields

orientation

int orientation

Class java.awt.Container sample code for java.awt.Container definition code for java.awt.Container extends Component sample code for java.awt.Component definition code for java.awt.Component implements Serializable

serialVersionUID: 4613797578919906343L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException 
Deserializes this Container from the specified ObjectInputStream.

Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
Container.addContainerListener(java.awt.event.ContainerListener) sample code for java.awt.Container.addContainerListener(java.awt.event.ContainerListener) definition code for java.awt.Container.addContainerListener(java.awt.event.ContainerListener) , Container.writeObject(ObjectOutputStream) sample code for java.awt.Container.writeObject(java.io.ObjectOutputStream) definition code for java.awt.Container.writeObject(java.io.ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Serializes this Container to the specified ObjectOutputStream.

Serial Data:
null terminated sequence of 0 or more pairs; the pair consists of a String and Object; the String indicates the type of object and is one of the following: containerListenerK indicating an ContainerListener object; the Container's FocusTraversalPolicy, or null
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) sample code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) definition code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) , Component.containerListenerK sample code for java.awt.Component.containerListenerK definition code for java.awt.Component.containerListenerK , Container.readObject(ObjectInputStream) sample code for java.awt.Container.readObject(java.io.ObjectInputStream) definition code for java.awt.Container.readObject(java.io.ObjectInputStream)
Serialized Fields

component

Component[] component
The components in this container.

containerSerializedDataVersion

int containerSerializedDataVersion
Container Serial Data Version.

dispatcher

java.awt.LightweightDispatcher dispatcher
Event 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 focusCycleRoot
Indicates 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 focusTraversalPolicyProvider
Stores the value of focusTraversalPolicyProvider property.

layoutMgr

LayoutManager sample code for java.awt.LayoutManager definition code for java.awt.LayoutManager  layoutMgr
Layout manager for this container.

maxSize

Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension  maxSize
Maximum size of this Container.

ncomponents

int ncomponents
The number of components in this container. This value can be null.

Class java.awt.Container.AccessibleAWTContainer sample code for java.awt.Container.AccessibleAWTContainer definition code for java.awt.Container.AccessibleAWTContainer extends Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent implements Serializable

serialVersionUID: 5081320404842566097L

Serialized Fields

accessibleContainerHandler

ContainerListener sample code for java.awt.event.ContainerListener definition code for java.awt.event.ContainerListener  accessibleContainerHandler

Class java.awt.ContainerOrderFocusTraversalPolicy sample code for java.awt.ContainerOrderFocusTraversalPolicy definition code for java.awt.ContainerOrderFocusTraversalPolicy extends FocusTraversalPolicy sample code for java.awt.FocusTraversalPolicy definition code for java.awt.FocusTraversalPolicy implements Serializable

serialVersionUID: 486933713763926351L

Serialized Fields

implicitDownCycleTraversal

boolean implicitDownCycleTraversal

Class java.awt.Cursor sample code for java.awt.Cursor definition code for java.awt.Cursor extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: 8028237497568985504L

Serialized Fields

type

int type
The chosen cursor type initially set to the DEFAULT_CURSOR.

 
See Also:
Cursor.getType() sample code for java.awt.Cursor.getType() definition code for java.awt.Cursor.getType()

name

String sample code for java.lang.String definition code for java.lang.String  name
The user-visible name of the cursor.

 
See Also:
Cursor.getName() sample code for java.awt.Cursor.getName() definition code for java.awt.Cursor.getName()

Class java.awt.DefaultFocusTraversalPolicy sample code for java.awt.DefaultFocusTraversalPolicy definition code for java.awt.DefaultFocusTraversalPolicy extends ContainerOrderFocusTraversalPolicy sample code for java.awt.ContainerOrderFocusTraversalPolicy definition code for java.awt.ContainerOrderFocusTraversalPolicy implements Serializable

Class java.awt.Dialog sample code for java.awt.Dialog definition code for java.awt.Dialog extends Window sample code for java.awt.Window definition code for java.awt.Window implements Serializable

serialVersionUID: 5920926903803293709L

Serialized Fields

resizable

boolean resizable
A dialog's resizable property. Will be true if the Dialog is to be resizable, otherwise it will be false.

 
See Also:
Dialog.setResizable(boolean) sample code for java.awt.Dialog.setResizable(boolean) definition code for java.awt.Dialog.setResizable(boolean)

undecorated

boolean undecorated
This 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) sample code for java.awt.Dialog.setUndecorated(boolean) definition code for java.awt.Dialog.setUndecorated(boolean) , Dialog.isUndecorated() sample code for java.awt.Dialog.isUndecorated() definition code for java.awt.Dialog.isUndecorated() , Component.isDisplayable() sample code for java.awt.Component.isDisplayable() definition code for java.awt.Component.isDisplayable()

modal

boolean modal
Will be true if the Dialog is modal, otherwise the dialog will be modeless. A modal Dialog grabs all the input to the owner frame from the user.

 
See Also:
Dialog.isModal() sample code for java.awt.Dialog.isModal() definition code for java.awt.Dialog.isModal() , Dialog.setModal(boolean) sample code for java.awt.Dialog.setModal(boolean) definition code for java.awt.Dialog.setModal(boolean)

title

String sample code for java.lang.String definition code for java.lang.String  title
Specifies the title of the Dialog. This field can be null.

 
See Also:
Dialog.getTitle() sample code for java.awt.Dialog.getTitle() definition code for java.awt.Dialog.getTitle() , Dialog.setTitle(String) sample code for java.awt.Dialog.setTitle(java.lang.String) definition code for java.awt.Dialog.setTitle(java.lang.String)

Class java.awt.Dialog.AccessibleAWTDialog sample code for java.awt.Dialog.AccessibleAWTDialog definition code for java.awt.Dialog.AccessibleAWTDialog extends Window.AccessibleAWTWindow sample code for java.awt.Window.AccessibleAWTWindow definition code for java.awt.Window.AccessibleAWTWindow implements Serializable

serialVersionUID: 4837230331833941201L

Class java.awt.Dimension sample code for java.awt.Dimension definition code for java.awt.Dimension extends Dimension2D sample code for java.awt.geom.Dimension2D definition code for java.awt.geom.Dimension2D implements Serializable

serialVersionUID: 4723952579491349524L

Serialized Fields

width

int width
The width dimension; negative values can be used.

 
See Also:
Dimension.getSize() sample code for java.awt.Dimension.getSize() definition code for java.awt.Dimension.getSize() , Dimension.setSize(double, double) sample code for java.awt.Dimension.setSize(double, double) definition code for java.awt.Dimension.setSize(double, double)

height

int height
The height dimension; negative values can be used.

 
See Also:
Dimension.getSize() sample code for java.awt.Dimension.getSize() definition code for java.awt.Dimension.getSize() , Dimension.setSize(double, double) sample code for java.awt.Dimension.setSize(double, double) definition code for java.awt.Dimension.setSize(double, double)

Class java.awt.Event sample code for java.awt.Event definition code for java.awt.Event extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: 5488922509400504703L

Serialized Fields

target

Object sample code for java.lang.Object definition code for java.lang.Object  target
The 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() sample code for java.util.EventObject.getSource() definition code for java.util.EventObject.getSource()

when

long when
The time stamp. Replaced by InputEvent.getWhen().

 
See Also:
InputEvent.getWhen() sample code for java.awt.event.InputEvent.getWhen() definition code for java.awt.event.InputEvent.getWhen()

id

int id
Indicates which type of event the event is, and which other Event variables are relevant for the event. This has been replaced by AWTEvent.getID()

 
See Also:
AWTEvent.getID() sample code for java.awt.AWTEvent.getID() definition code for java.awt.AWTEvent.getID()

x

int x
The x coordinate of the event. Replaced by MouseEvent.getX()

 
See Also:
MouseEvent.getX() sample code for java.awt.event.MouseEvent.getX() definition code for java.awt.event.MouseEvent.getX()

y

int y
The y coordinate of the event. Replaced by MouseEvent.getY()

 
See Also:
MouseEvent.getY() sample code for java.awt.event.MouseEvent.getY() definition code for java.awt.event.MouseEvent.getY()

key

int key
The key code of the key that was pressed in a keyboard event. This has been replaced by KeyEvent.getKeyCode()

 
See Also:
KeyEvent.getKeyCode() sample code for java.awt.event.KeyEvent.getKeyCode() definition code for java.awt.event.KeyEvent.getKeyCode()

modifiers

int modifiers
The 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() sample code for java.awt.event.InputEvent.getModifiers() definition code for java.awt.event.InputEvent.getModifiers()

clickCount

int clickCount
For 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().

 
See Also:
MouseEvent.getClickCount(). sample code for java.awt.event.MouseEvent.getClickCount() definition code for java.awt.event.MouseEvent.getClickCount()

arg

Object sample code for java.lang.Object definition code for java.lang.Object  arg
An 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 sample code for java.awt.Event definition code for java.awt.Event  evt
The next event. This field is set when putting events into a linked list. This has been replaced by EventQueue.

 
See Also:
EventQueue sample code for java.awt.EventQueue definition code for java.awt.EventQueue

consumed

boolean consumed
This 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() sample code for java.awt.Event.isConsumed() definition code for java.awt.Event.isConsumed()

Class java.awt.FileDialog sample code for java.awt.FileDialog definition code for java.awt.FileDialog extends Dialog sample code for java.awt.Dialog definition code for java.awt.Dialog implements Serializable

serialVersionUID: 5035145889651310422L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException 
Reads the ObjectInputStream and performs a backwards compatibility check by converting either a dir or a file equal to an empty string to null.

Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
Serialized Fields

mode

int mode

dir

String sample code for java.lang.String definition code for java.lang.String  dir

file

String sample code for java.lang.String definition code for java.lang.String  file

filter

FilenameFilter sample code for java.io.FilenameFilter definition code for java.io.FilenameFilter  filter

Class java.awt.FlowLayout sample code for java.awt.FlowLayout definition code for java.awt.FlowLayout extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -7262534875583282631L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  stream)
                 throws IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException 
Reads 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:
IOException sample code for java.io.IOException definition code for java.io.IOException
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
Serialized Fields

align

int align
align is the property that determines how each row distributes empty space. It can be one of the following values:

 
See Also:
FlowLayout.getAlignment() sample code for java.awt.FlowLayout.getAlignment() definition code for java.awt.FlowLayout.getAlignment() , FlowLayout.setAlignment(int) sample code for java.awt.FlowLayout.setAlignment(int) definition code for java.awt.FlowLayout.setAlignment(int)

newAlign

int newAlign
newAlign is the property that determines how each row distributes empty space for the Java 2 platform, v1.2 and greater. It can be one of the following three values:

 
Since:
1.2
See Also:
FlowLayout.getAlignment() sample code for java.awt.FlowLayout.getAlignment() definition code for java.awt.FlowLayout.getAlignment() , FlowLayout.setAlignment(int) sample code for java.awt.FlowLayout.setAlignment(int) definition code for java.awt.FlowLayout.setAlignment(int)

hgap

int hgap
The 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 the Container.

 
See Also:
FlowLayout.getHgap() sample code for java.awt.FlowLayout.getHgap() definition code for java.awt.FlowLayout.getHgap() , FlowLayout.setHgap(int) sample code for java.awt.FlowLayout.setHgap(int) definition code for java.awt.FlowLayout.setHgap(int)

vgap

int vgap
The 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 the Container.

 
See Also:
FlowLayout.getHgap() sample code for java.awt.FlowLayout.getHgap() definition code for java.awt.FlowLayout.getHgap() , FlowLayout.setHgap(int) sample code for java.awt.FlowLayout.setHgap(int) definition code for java.awt.FlowLayout.setHgap(int)

serialVersionOnStream

int serialVersionOnStream
This represent the 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..

 
Since:
1.2

Class java.awt.Font sample code for java.awt.Font definition code for java.awt.Font extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -4206021311591459213L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException 
Reads the ObjectInputStream. Unrecognized keys or values will be ignored.

Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
Font.writeObject(java.io.ObjectOutputStream) sample code for java.awt.Font.writeObject(java.io.ObjectOutputStream) definition code for java.awt.Font.writeObject(java.io.ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                         IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes default serializable fields to a stream.

Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) sample code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) definition code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) , Font.readObject(java.io.ObjectInputStream) sample code for java.awt.Font.readObject(java.io.ObjectInputStream) definition code for java.awt.Font.readObject(java.io.ObjectInputStream)
Serialized Fields

fRequestedAttributes

Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable <K,V> fRequestedAttributes
A map of font attributes available in this font. Attributes include things like ligatures and glyph substitution.

 
See Also:
Font.getAttributes() sample code for java.awt.Font.getAttributes() definition code for java.awt.Font.getAttributes()

name

String sample code for java.lang.String definition code for java.lang.String  name
The logical name of this Font, as passed to the constructor.

 
Since:
JDK1.0
See Also:
Font.getName() sample code for java.awt.Font.getName() definition code for java.awt.Font.getName()

style

int style
The style of this Font, as passed to the constructor. This style can be PLAIN, BOLD, ITALIC, or BOLD+ITALIC.

 
Since:
JDK1.0
See Also:
Font.getStyle() sample code for java.awt.Font.getStyle() definition code for java.awt.Font.getStyle()

size

int size
The point size of this Font, rounded to integer.

 
Since:
JDK1.0
See Also:
Font.getSize() sample code for java.awt.Font.getSize() definition code for java.awt.Font.getSize()

pointSize

float pointSize
The point size of this Font in float.

 
See Also:
Font.getSize() sample code for java.awt.Font.getSize() definition code for java.awt.Font.getSize() , Font.getSize2D() sample code for java.awt.Font.getSize2D() definition code for java.awt.Font.getSize2D()

fontSerializedDataVersion

int fontSerializedDataVersion
The Font Serializable Data Form.

 

Class java.awt.FontFormatException sample code for java.awt.FontFormatException definition code for java.awt.FontFormatException extends Exception sample code for java.lang.Exception definition code for java.lang.Exception implements Serializable

Class java.awt.FontMetrics sample code for java.awt.FontMetrics definition code for java.awt.FontMetrics extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: 1681126225205050147L

Serialized Fields

font

Font sample code for java.awt.Font definition code for java.awt.Font  font
The actual Font sample code for java.awt.Font definition code for java.awt.Font from which the font metrics are created. This cannot be null.

 
See Also:
FontMetrics.getFont() sample code for java.awt.FontMetrics.getFont() definition code for java.awt.FontMetrics.getFont()

Class java.awt.Frame sample code for java.awt.Frame definition code for java.awt.Frame extends Window sample code for java.awt.Window definition code for java.awt.Window implements Serializable

serialVersionUID: 2673458971256075116L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Reads the ObjectInputStream. Tries to read an Icon, which is optional data available as of 1.4. If an Icon is not available, but anything other than an EOF is detected, an OptionalDataException will be thrown.. Unrecognized keys or values will be ignored.

Throws:
OptionalDataException - if an Icon is not available, but anything other than an EOF is detected
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless returns true
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , Icon sample code for javax.swing.Icon definition code for javax.swing.Icon , Frame.writeObject(ObjectOutputStream) sample code for java.awt.Frame.writeObject(java.io.ObjectOutputStream) definition code for java.awt.Frame.writeObject(java.io.ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes default serializable fields to stream. Writes an optional serializable Icon, which is available as of 1.4.

Serial Data:
an optional Icon
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
Icon sample code for javax.swing.Icon definition code for javax.swing.Icon , Frame.readObject(ObjectInputStream) sample code for java.awt.Frame.readObject(java.io.ObjectInputStream) definition code for java.awt.Frame.readObject(java.io.ObjectInputStream)
Serialized Fields

maximizedBounds

Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  maximizedBounds
Maximized bounds for this frame.

 
Since:
1.4
See Also:
Frame.setMaximizedBounds(Rectangle) sample code for java.awt.Frame.setMaximizedBounds(java.awt.Rectangle) definition code for java.awt.Frame.setMaximizedBounds(java.awt.Rectangle) , Frame.getMaximizedBounds() sample code for java.awt.Frame.getMaximizedBounds() definition code for java.awt.Frame.getMaximizedBounds()

title

String sample code for java.lang.String definition code for java.lang.String  title
This is the title of the frame. It can be changed at any time. title can be null and if this is the case the title = "".

 
See Also:
Frame.getTitle() sample code for java.awt.Frame.getTitle() definition code for java.awt.Frame.getTitle() , Frame.setTitle(String) sample code for java.awt.Frame.setTitle(java.lang.String) definition code for java.awt.Frame.setTitle(java.lang.String)

menuBar

MenuBar sample code for java.awt.MenuBar definition code for java.awt.MenuBar  menuBar
The frames menubar. If menuBar = null the frame will not have a menubar.

 
See Also:
Frame.getMenuBar() sample code for java.awt.Frame.getMenuBar() definition code for java.awt.Frame.getMenuBar() , Frame.setMenuBar(MenuBar) sample code for java.awt.Frame.setMenuBar(java.awt.MenuBar) definition code for java.awt.Frame.setMenuBar(java.awt.MenuBar)

resizable

boolean resizable
This 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() sample code for java.awt.Frame.isResizable() definition code for java.awt.Frame.isResizable()

undecorated

boolean undecorated
This 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) sample code for java.awt.Frame.setUndecorated(boolean) definition code for java.awt.Frame.setUndecorated(boolean) , Frame.isUndecorated() sample code for java.awt.Frame.isUndecorated() definition code for java.awt.Frame.isUndecorated() , Component.isDisplayable() sample code for java.awt.Component.isDisplayable() definition code for java.awt.Component.isDisplayable()

mbManagement

boolean mbManagement
mbManagement is only used by the Motif implementation.

 

state

int state

ownedWindows

Vector sample code for java.util.Vector definition code for java.util.Vector <E> ownedWindows

frameSerializedDataVersion

int frameSerializedDataVersion
Frame's Serialized Data Version.

 

Class java.awt.Frame.AccessibleAWTFrame sample code for java.awt.Frame.AccessibleAWTFrame definition code for java.awt.Frame.AccessibleAWTFrame extends Window.AccessibleAWTWindow sample code for java.awt.Window.AccessibleAWTWindow definition code for java.awt.Window.AccessibleAWTWindow implements Serializable

serialVersionUID: -6172960752956030250L

Class java.awt.GraphicsConfigTemplate sample code for java.awt.GraphicsConfigTemplate definition code for java.awt.GraphicsConfigTemplate extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

Class java.awt.GridBagConstraints sample code for java.awt.GridBagConstraints definition code for java.awt.GridBagConstraints extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -1000070633030801713L

Serialized Fields

gridx

int gridx
Specifies the cell containing the leading edge of the component's display area, where the first cell in a row has 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.

 
See Also:
GridBagConstraints.clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() , GridBagConstraints.gridy sample code for java.awt.GridBagConstraints.gridy definition code for java.awt.GridBagConstraints.gridy , ComponentOrientation sample code for java.awt.ComponentOrientation definition code for java.awt.ComponentOrientation

gridy

int gridy
Specifies the cell at the top of the component's display area, where the topmost cell has 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.

 
See Also:
GridBagConstraints.clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() , GridBagConstraints.gridx sample code for java.awt.GridBagConstraints.gridx definition code for java.awt.GridBagConstraints.gridx

gridwidth

int gridwidth
Specifies 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 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.

 
See Also:
GridBagConstraints.clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() , GridBagConstraints.gridheight sample code for java.awt.GridBagConstraints.gridheight definition code for java.awt.GridBagConstraints.gridheight

gridheight

int gridheight
Specifies 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 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.

 
See Also:
GridBagConstraints.clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() , GridBagConstraints.gridwidth sample code for java.awt.GridBagConstraints.gridwidth definition code for java.awt.GridBagConstraints.gridwidth

weightx

double weightx
Specifies 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.

 
See Also:
GridBagConstraints.clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() , GridBagConstraints.weighty sample code for java.awt.GridBagConstraints.weighty definition code for java.awt.GridBagConstraints.weighty

weighty

double weighty
Specifies 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.

 
See Also:
GridBagConstraints.clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() , GridBagConstraints.weightx sample code for java.awt.GridBagConstraints.weightx definition code for java.awt.GridBagConstraints.weightx

anchor

int anchor
This 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 two kinds of possible values: relative and absolute. Relative values are interpreted relative to the container's component orientation property while absolute values are not. The absolute values are: CENTER, NORTH, NORTHEAST, EAST, SOUTHEAST, SOUTH, SOUTHWEST, WEST, and NORTHWEST. The relative values are: PAGE_START, PAGE_END, LINE_START, LINE_END, FIRST_LINE_START, FIRST_LINE_END, LAST_LINE_START and LAST_LINE_END. The default value is CENTER.

 
See Also:
GridBagConstraints.clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() , ComponentOrientation sample code for java.awt.ComponentOrientation definition code for java.awt.ComponentOrientation

fill

int fill
This 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:

The default value is NONE.

 
See Also:
GridBagConstraints.clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone()

insets

Insets sample code for java.awt.Insets definition code for java.awt.Insets  insets
This 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() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone()

ipadx

int ipadx
This 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 plus ipadx pixels.

The default value is 0.

 
See Also:
GridBagConstraints.clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() , GridBagConstraints.ipady sample code for java.awt.GridBagConstraints.ipady definition code for java.awt.GridBagConstraints.ipady

ipady

int ipady
This 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 plus ipady pixels.

The default value is 0.

 
See Also:
GridBagConstraints.clone() sample code for java.awt.GridBagConstraints.clone() definition code for java.awt.GridBagConstraints.clone() , GridBagConstraints.ipadx sample code for java.awt.GridBagConstraints.ipadx definition code for java.awt.GridBagConstraints.ipadx

tempX

int tempX
Temporary place holder for the x coordinate.

 

tempY

int tempY
Temporary place holder for the y coordinate.

 

tempWidth

int tempWidth
Temporary place holder for the Width of the component.

 

tempHeight

int tempHeight
Temporary place holder for the Height of the component.

 

minWidth

int minWidth
The minimum width of the component. It is used to calculate ipady, where the default will be 0.

 
See Also:
GridBagConstraints.ipady sample code for java.awt.GridBagConstraints.ipady definition code for java.awt.GridBagConstraints.ipady

minHeight

int minHeight
The minimum height of the component. It is used to calculate ipadx, where the default will be 0.

 
See Also:
GridBagConstraints.ipadx sample code for java.awt.GridBagConstraints.ipadx definition code for java.awt.GridBagConstraints.ipadx

Class java.awt.GridBagLayout sample code for java.awt.GridBagLayout definition code for java.awt.GridBagLayout extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: 8838754796412211005L

Serialized Fields

comptable

Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable <K,V> comptable
This hashtable maintains the association between a component and its gridbag constraints. The Keys in comptable are the components and the values are the instances of GridBagConstraints.

 
See Also:
GridBagConstraints sample code for java.awt.GridBagConstraints definition code for java.awt.GridBagConstraints

defaultConstraints

GridBagConstraints sample code for java.awt.GridBagConstraints definition code for java.awt.GridBagConstraints  defaultConstraints
This 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 the defaultConstraints.

 
See Also:
GridBagLayout.getConstraints(Component) sample code for java.awt.GridBagLayout.getConstraints(java.awt.Component) definition code for java.awt.GridBagLayout.getConstraints(java.awt.Component) , GridBagLayout.setConstraints(Component, GridBagConstraints) sample code for java.awt.GridBagLayout.setConstraints(java.awt.Component, java.awt.GridBagConstraints) definition code for java.awt.GridBagLayout.setConstraints(java.awt.Component, java.awt.GridBagConstraints) , GridBagLayout.lookupConstraints(Component) sample code for java.awt.GridBagLayout.lookupConstraints(java.awt.Component) definition code for java.awt.GridBagLayout.lookupConstraints(java.awt.Component)

layoutInfo

java.awt.GridBagLayoutInfo layoutInfo
This field holds the layout information for the gridbag. The information in this field is based on the most recent validation of the gridbag. If layoutInfo is null this indicates that there are no components in the gridbag or if there are components, they have not yet been validated.

 
See Also:
GridBagLayout.getLayoutInfo(Container, int) sample code for java.awt.GridBagLayout.getLayoutInfo(java.awt.Container, int) definition code for java.awt.GridBagLayout.getLayoutInfo(java.awt.Container, int)

columnWidths

int[] columnWidths
This 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() sample code for java.awt.GridBagLayout.getLayoutDimensions() definition code for java.awt.GridBagLayout.getLayoutDimensions()

rowHeights

int[] rowHeights
This 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. If rowHeights has more elements than the number of rows, rowa are added to the gridbag to match the number of elements in rowHeights.

 
See Also:
GridBagLayout.getLayoutDimensions() sample code for java.awt.GridBagLayout.getLayoutDimensions() definition code for java.awt.GridBagLayout.getLayoutDimensions()

columnWeights

double[] columnWeights
This 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. 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.

 

rowWeights

double[] rowWeights
This 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. 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.

 

Class java.awt.GridLayout sample code for java.awt.GridLayout definition code for java.awt.GridLayout extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

Serialized Fields

hgap

int hgap
This 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() sample code for java.awt.GridLayout.getHgap() definition code for java.awt.GridLayout.getHgap() , GridLayout.setHgap(int) sample code for java.awt.GridLayout.setHgap(int) definition code for java.awt.GridLayout.setHgap(int)

vgap

int vgap
This 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() sample code for java.awt.GridLayout.getVgap() definition code for java.awt.GridLayout.getVgap() , GridLayout.setVgap(int) sample code for java.awt.GridLayout.setVgap(int) definition code for java.awt.GridLayout.setVgap(int)

rows

int rows
This 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() sample code for java.awt.GridLayout.getRows() definition code for java.awt.GridLayout.getRows() , GridLayout.setRows(int) sample code for java.awt.GridLayout.setRows(int) definition code for java.awt.GridLayout.setRows(int)

cols

int cols
This 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.

 
See Also:
GridLayout.getColumns() sample code for java.awt.GridLayout.getColumns() definition code for java.awt.GridLayout.getColumns() , GridLayout.setColumns(int) sample code for java.awt.GridLayout.setColumns(int) definition code for java.awt.GridLayout.setColumns(int)

Class java.awt.HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException extends UnsupportedOperationException sample code for java.lang.UnsupportedOperationException definition code for java.lang.UnsupportedOperationException implements Serializable

serialVersionUID: 167183644944358563L

Class java.awt.IllegalComponentStateException sample code for java.awt.IllegalComponentStateException definition code for java.awt.IllegalComponentStateException extends IllegalStateException sample code for java.lang.IllegalStateException definition code for java.lang.IllegalStateException implements Serializable

serialVersionUID: -1889339587208144238L

Class java.awt.Insets sample code for java.awt.Insets definition code for java.awt.Insets extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -2272572637695466749L

Serialized Fields

top

int top
The 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() sample code for java.awt.Insets.clone() definition code for java.awt.Insets.clone()

left

int left
The 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() sample code for java.awt.Insets.clone() definition code for java.awt.Insets.clone()

bottom

int bottom
The 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() sample code for java.awt.Insets.clone() definition code for java.awt.Insets.clone()

right

int right
The 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() sample code for java.awt.Insets.clone() definition code for java.awt.Insets.clone()

Class java.awt.Label sample code for java.awt.Label definition code for java.awt.Label extends Component sample code for java.awt.Component definition code for java.awt.Component implements Serializable

serialVersionUID: 3094126758329070636L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Read a label from an object input stream.

Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
Since:
1.4
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless()
Serialized Fields

text

String sample code for java.lang.String definition code for java.lang.String  text
The text of this label. This text can be modified by the program but never by the user.

 
See Also:
Label.getText() sample code for java.awt.Label.getText() definition code for java.awt.Label.getText() , Label.setText(String) sample code for java.awt.Label.setText(java.lang.String) definition code for java.awt.Label.setText(java.lang.String)

alignment

int alignment
The label's alignment. The default alignment is set to be left justified.

 
See Also:
Label.getAlignment() sample code for java.awt.Label.getAlignment() definition code for java.awt.Label.getAlignment() , Label.setAlignment(int) sample code for java.awt.Label.setAlignment(int) definition code for java.awt.Label.setAlignment(int)

Class java.awt.Label.AccessibleAWTLabel sample code for java.awt.Label.AccessibleAWTLabel definition code for java.awt.Label.AccessibleAWTLabel extends Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent implements Serializable

serialVersionUID: -3568967560160480438L

Class java.awt.List sample code for java.awt.List definition code for java.awt.List extends Component sample code for java.awt.Component definition code for java.awt.Component implements Serializable

serialVersionUID: -3304312411574666869L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Reads the 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.

Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless returns true
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
List.removeItemListener(ItemListener) sample code for java.awt.List.removeItemListener(java.awt.event.ItemListener) definition code for java.awt.List.removeItemListener(java.awt.event.ItemListener) , List.addItemListener(ItemListener) sample code for java.awt.List.addItemListener(java.awt.event.ItemListener) definition code for java.awt.List.addItemListener(java.awt.event.ItemListener) , GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , List.writeObject(ObjectOutputStream) sample code for java.awt.List.writeObject(java.io.ObjectOutputStream) definition code for java.awt.List.writeObject(java.io.ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes default serializable fields to stream. Writes a list of serializable ItemListeners and ActionListeners 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 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 object
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) sample code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) definition code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) , Component.itemListenerK sample code for java.awt.Component.itemListenerK definition code for java.awt.Component.itemListenerK , Component.actionListenerK sample code for java.awt.Component.actionListenerK definition code for java.awt.Component.actionListenerK , List.readObject(ObjectInputStream) sample code for java.awt.List.readObject(java.io.ObjectInputStream) definition code for java.awt.List.readObject(java.io.ObjectInputStream)
Serialized Fields

items

Vector sample code for java.util.Vector definition code for java.util.Vector <E> items
A vector created to contain items which will become part of the List Component.

 
See Also:
List.addItem(String) sample code for java.awt.List.addItem(java.lang.String) definition code for java.awt.List.addItem(java.lang.String) , List.getItem(int) sample code for java.awt.List.getItem(int) definition code for java.awt.List.getItem(int)

rows

int rows
This field will represent the number of visible rows in the List Component. It is specified only once, and that is when the list component is actually created. It will never change.

 
See Also:
List.getRows() sample code for java.awt.List.getRows() definition code for java.awt.List.getRows()

multipleMode

boolean multipleMode
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.

 
See Also:
List.isMultipleMode() sample code for java.awt.List.isMultipleMode() definition code for java.awt.List.isMultipleMode() , List.setMultipleMode(boolean) sample code for java.awt.List.setMultipleMode(boolean) definition code for java.awt.List.setMultipleMode(boolean)

selected

int[] selected
selected is an array that will contain the indices of items that have been selected.

 
See Also:
List.getSelectedIndexes() sample code for java.awt.List.getSelectedIndexes() definition code for java.awt.List.getSelectedIndexes() , List.getSelectedIndex() sample code for java.awt.List.getSelectedIndex() definition code for java.awt.List.getSelectedIndex()

visibleIndex

int visibleIndex
This variable contains the value that will be used when trying to make a particular list item visible.

 
See Also:
List.makeVisible(int) sample code for java.awt.List.makeVisible(int) definition code for java.awt.List.makeVisible(int)

listSerializedDataVersion

int listSerializedDataVersion
The List component's Serialized Data Version.

 

Class java.awt.List.AccessibleAWTList sample code for java.awt.List.AccessibleAWTList definition code for java.awt.List.AccessibleAWTList extends Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent implements Serializable

serialVersionUID: 7924617370136012829L

Class java.awt.List.AccessibleAWTList.AccessibleAWTListChild sample code for java.awt.List.AccessibleAWTList.AccessibleAWTListChild definition code for java.awt.List.AccessibleAWTList.AccessibleAWTListChild extends Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent implements Serializable

serialVersionUID: 4412022926028300317L

Serialized Fields

parent

List sample code for java.awt.List definition code for java.awt.List  parent

indexInParent

int indexInParent

Class java.awt.MediaTracker sample code for java.awt.MediaTracker definition code for java.awt.MediaTracker extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -483174189758638095L

Serialized Fields

target

Component sample code for java.awt.Component definition code for java.awt.Component  target
A given Component that will be tracked by a media tracker where the image will eventually be drawn.

 
See Also:
MediaTracker.MediaTracker(Component) sample code for java.awt.MediaTracker.MediaTracker(java.awt.Component) definition code for java.awt.MediaTracker.MediaTracker(java.awt.Component)

head

java.awt.MediaEntry head
The head of the list of Images that is being tracked by the MediaTracker.

 
See Also:
MediaTracker.addImage(Image, int) sample code for java.awt.MediaTracker.addImage(java.awt.Image, int) definition code for java.awt.MediaTracker.addImage(java.awt.Image, int) , MediaTracker.removeImage(Image) sample code for java.awt.MediaTracker.removeImage(java.awt.Image) definition code for java.awt.MediaTracker.removeImage(java.awt.Image)

Class java.awt.Menu sample code for java.awt.Menu definition code for java.awt.Menu extends MenuItem sample code for java.awt.MenuItem definition code for java.awt.MenuItem implements Serializable

serialVersionUID: -8809584163345499784L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Reads the ObjectInputStream. Unrecognized keys or values will be ignored.

Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless returns true
IOException sample code for java.io.IOException definition code for java.io.IOException
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , Menu.writeObject(ObjectOutputStream) sample code for java.awt.Menu.writeObject(java.io.ObjectOutputStream) definition code for java.awt.Menu.writeObject(java.io.ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes default serializable fields to stream.

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) sample code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) definition code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) , Menu.readObject(ObjectInputStream) sample code for java.awt.Menu.readObject(java.io.ObjectInputStream) definition code for java.awt.Menu.readObject(java.io.ObjectInputStream)
Serialized Fields

items

Vector sample code for java.util.Vector definition code for java.util.Vector <E> items
A vector of the items that will be part of the Menu.

 
See Also:
Menu.countItems() sample code for java.awt.Menu.countItems() definition code for java.awt.Menu.countItems()

tearOff

boolean tearOff
This field indicates whether the menu has the tear of property or not. It will be set to 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.

 
See Also:
Menu.isTearOff() sample code for java.awt.Menu.isTearOff() definition code for java.awt.Menu.isTearOff()

isHelpMenu

boolean isHelpMenu
This field will be set to true if the Menu in question is actually a help menu. Otherwise it will be set to false.

 

menuSerializedDataVersion

int menuSerializedDataVersion
The menu serialized Data Version.

 

Class java.awt.Menu.AccessibleAWTMenu sample code for java.awt.Menu.AccessibleAWTMenu definition code for java.awt.Menu.AccessibleAWTMenu extends MenuItem.AccessibleAWTMenuItem sample code for java.awt.MenuItem.AccessibleAWTMenuItem definition code for java.awt.MenuItem.AccessibleAWTMenuItem implements Serializable

serialVersionUID: 5228160894980069094L

Class java.awt.MenuBar sample code for java.awt.MenuBar definition code for java.awt.MenuBar extends MenuComponent sample code for java.awt.MenuComponent definition code for java.awt.MenuComponent implements Serializable

serialVersionUID: -4930327919388951260L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Reads the ObjectInputStream. Unrecognized keys or values will be ignored.

Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless returns true
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , MenuBar.writeObject(java.io.ObjectOutputStream) sample code for java.awt.MenuBar.writeObject(java.io.ObjectOutputStream) definition code for java.awt.MenuBar.writeObject(java.io.ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                         IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes default serializable fields to stream.

Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) sample code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) definition code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) , MenuBar.readObject(java.io.ObjectInputStream) sample code for java.awt.MenuBar.readObject(java.io.ObjectInputStream) definition code for java.awt.MenuBar.readObject(java.io.ObjectInputStream)
Serialized Fields

menus

Vector sample code for java.util.Vector definition code for java.util.Vector <E> menus
This field represents a vector of the actual menus that will be part of the MenuBar.

 
See Also:
MenuBar.countMenus() sample code for java.awt.MenuBar.countMenus() definition code for java.awt.MenuBar.countMenus()

helpMenu

Menu sample code for java.awt.Menu definition code for java.awt.Menu  helpMenu
This 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.

 
See Also:
MenuBar.getHelpMenu() sample code for java.awt.MenuBar.getHelpMenu() definition code for java.awt.MenuBar.getHelpMenu() , MenuBar.setHelpMenu(Menu) sample code for java.awt.MenuBar.setHelpMenu(java.awt.Menu) definition code for java.awt.MenuBar.setHelpMenu(java.awt.Menu)

menuBarSerializedDataVersion

int menuBarSerializedDataVersion
The MenuBar's serialized data version.

 

Class java.awt.MenuBar.AccessibleAWTMenuBar sample code for java.awt.MenuBar.AccessibleAWTMenuBar definition code for java.awt.MenuBar.AccessibleAWTMenuBar extends MenuComponent.AccessibleAWTMenuComponent sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent implements Serializable

serialVersionUID: -8577604491830083815L

Class java.awt.MenuComponent sample code for java.awt.MenuComponent definition code for java.awt.MenuComponent extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -4536902356223894379L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Reads the menu component from an object input stream.

Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless returns true
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless()
Serialized Fields

font

Font sample code for java.awt.Font definition code for java.awt.Font  font
The menu component's font. This value can be null at which point a default will be used. This defaults to null.

 
See Also:
MenuComponent.setFont(Font) sample code for java.awt.MenuComponent.setFont(java.awt.Font) definition code for java.awt.MenuComponent.setFont(java.awt.Font) , MenuComponent.getFont() sample code for java.awt.MenuComponent.getFont() definition code for java.awt.MenuComponent.getFont()

name

String sample code for java.lang.String definition code for java.lang.String  name
The menu component's name, which defaults to null.

 
See Also:
MenuComponent.getName() sample code for java.awt.MenuComponent.getName() definition code for java.awt.MenuComponent.getName() , MenuComponent.setName(String) sample code for java.awt.MenuComponent.setName(java.lang.String) definition code for java.awt.MenuComponent.setName(java.lang.String)

nameExplicitlySet

boolean nameExplicitlySet
A variable to indicate whether a name is explicitly set. If true the name will be set explicitly. This defaults to false.

 
See Also:
MenuComponent.setName(String) sample code for java.awt.MenuComponent.setName(java.lang.String) definition code for java.awt.MenuComponent.setName(java.lang.String)

newEventsOnly

boolean newEventsOnly
Defaults to false.

 
See Also:
MenuComponent.dispatchEvent(AWTEvent) sample code for java.awt.MenuComponent.dispatchEvent(java.awt.AWTEvent) definition code for java.awt.MenuComponent.dispatchEvent(java.awt.AWTEvent)

accessibleContext

AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext  accessibleContext

Class java.awt.MenuComponent.AccessibleAWTMenuComponent sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent extends AccessibleContext sample code for javax.accessibility.AccessibleContext definition code for javax.accessibility.AccessibleContext implements Serializable

serialVersionUID: -4269533416223798698L

Class java.awt.MenuItem sample code for java.awt.MenuItem definition code for java.awt.MenuItem extends MenuComponent sample code for java.awt.MenuComponent definition code for java.awt.MenuComponent implements Serializable

serialVersionUID: -21757335363267194L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Reads the 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.

Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless returns true
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
#removeActionListener(actionListener), #addActionListener(actionListener), MenuItem.writeObject(ObjectOutputStream) sample code for java.awt.MenuItem.writeObject(java.io.ObjectOutputStream) definition code for java.awt.MenuItem.writeObject(java.io.ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes default serializable fields to stream. Writes a list of serializable ActionListeners 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 a String and an Object; the String indicates the type of object and is one of the following: actionListenerK indicating an ActionListener object
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) sample code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) definition code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) , MenuItem.readObject(ObjectInputStream) sample code for java.awt.MenuItem.readObject(java.io.ObjectInputStream) definition code for java.awt.MenuItem.readObject(java.io.ObjectInputStream)
Serialized Fields

enabled

boolean enabled
A value to indicate whether a menu item is enabled or not. If it is enabled, enabled will be set to true. Else enabled will be set to false.

 
See Also:
MenuItem.isEnabled() sample code for java.awt.MenuItem.isEnabled() definition code for java.awt.MenuItem.isEnabled() , MenuItem.setEnabled(boolean) sample code for java.awt.MenuItem.setEnabled(boolean) definition code for java.awt.MenuItem.setEnabled(boolean)

label

String sample code for java.lang.String definition code for java.lang.String  label
label is the label of a menu item. It can be any string.

 
See Also:
MenuItem.getLabel() sample code for java.awt.MenuItem.getLabel() definition code for java.awt.MenuItem.getLabel() , MenuItem.setLabel(String) sample code for java.awt.MenuItem.setLabel(java.lang.String) definition code for java.awt.MenuItem.setLabel(java.lang.String)

actionCommand

String sample code for java.lang.String definition code for java.lang.String  actionCommand
This field indicates the command tha has been issued by a particular menu item. By default the actionCommand is the label of the menu item, unless it has been set using setActionCommand.

 
See Also:
MenuItem.setActionCommand(String) sample code for java.awt.MenuItem.setActionCommand(java.lang.String) definition code for java.awt.MenuItem.setActionCommand(java.lang.String) , MenuItem.getActionCommand() sample code for java.awt.MenuItem.getActionCommand() definition code for java.awt.MenuItem.getActionCommand()

eventMask

long eventMask
The 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 sample code for java.awt.MenuShortcut definition code for java.awt.MenuShortcut  shortcut
A 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.

 
See Also:
MenuItem.getShortcut() sample code for java.awt.MenuItem.getShortcut() definition code for java.awt.MenuItem.getShortcut() , MenuItem.setShortcut(MenuShortcut) sample code for java.awt.MenuItem.setShortcut(java.awt.MenuShortcut) definition code for java.awt.MenuItem.setShortcut(java.awt.MenuShortcut) , MenuItem.deleteShortcut() sample code for java.awt.MenuItem.deleteShortcut() definition code for java.awt.MenuItem.deleteShortcut()

menuItemSerializedDataVersion

int menuItemSerializedDataVersion
Menu item serialized data version.

 

Class java.awt.MenuItem.AccessibleAWTMenuItem sample code for java.awt.MenuItem.AccessibleAWTMenuItem definition code for java.awt.MenuItem.AccessibleAWTMenuItem extends MenuComponent.AccessibleAWTMenuComponent sample code for java.awt.MenuComponent.AccessibleAWTMenuComponent definition code for java.awt.MenuComponent.AccessibleAWTMenuComponent implements Serializable

serialVersionUID: -217847831945965825L

Class java.awt.MenuShortcut sample code for java.awt.MenuShortcut definition code for java.awt.MenuShortcut extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: 143448358473180225L

Serialized Fields

key

int key
The 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() sample code for java.awt.MenuShortcut.getKey() definition code for java.awt.MenuShortcut.getKey() , MenuShortcut.usesShiftModifier() sample code for java.awt.MenuShortcut.usesShiftModifier() definition code for java.awt.MenuShortcut.usesShiftModifier() , KeyEvent sample code for java.awt.event.KeyEvent definition code for java.awt.event.KeyEvent

usesShift

boolean usesShift
Indicates 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() sample code for java.awt.MenuShortcut.usesShiftModifier() definition code for java.awt.MenuShortcut.usesShiftModifier()

Class java.awt.Panel sample code for java.awt.Panel definition code for java.awt.Panel extends Container sample code for java.awt.Container definition code for java.awt.Container implements Serializable

serialVersionUID: -2728009084054400034L

Class java.awt.Panel.AccessibleAWTPanel sample code for java.awt.Panel.AccessibleAWTPanel definition code for java.awt.Panel.AccessibleAWTPanel extends Container.AccessibleAWTContainer sample code for java.awt.Container.AccessibleAWTContainer definition code for java.awt.Container.AccessibleAWTContainer implements Serializable

serialVersionUID: -6409552226660031050L

Class java.awt.Point sample code for java.awt.Point definition code for java.awt.Point extends Point2D sample code for java.awt.geom.Point2D definition code for java.awt.geom.Point2D implements Serializable

serialVersionUID: -5276940640259749850L

Serialized Fields

x

int x
The x coordinate. If no x coordinate is set it will default to 0.

 
See Also:
Point.getLocation() sample code for java.awt.Point.getLocation() definition code for java.awt.Point.getLocation() , Point.move(int, int) sample code for java.awt.Point.move(int, int) definition code for java.awt.Point.move(int, int)

y

int y
The y coordinate. If no y coordinate is set it will default to 0.

 
See Also:
Point.getLocation() sample code for java.awt.Point.getLocation() definition code for java.awt.Point.getLocation() , Point.move(int, int) sample code for java.awt.Point.move(int, int) definition code for java.awt.Point.move(int, int)

Class java.awt.Polygon sample code for java.awt.Polygon definition code for java.awt.Polygon extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -6460061437900069969L

Serialized Fields

npoints

int npoints
The total number of points. The value of npoints represents the number of valid points in this Polygon and might be less than the number of elements in xpoints sample code for java.awt.Polygon.xpoints definition code for java.awt.Polygon.xpoints or ypoints sample code for java.awt.Polygon.ypoints definition code for java.awt.Polygon.ypoints . This value can be NULL.

 
See Also:
Polygon.addPoint(int, int) sample code for java.awt.Polygon.addPoint(int, int) definition code for java.awt.Polygon.addPoint(int, int)

xpoints

int[] xpoints
The array of x coordinates. The number of elements in this array might be more than the number of x coordinates in this Polygon. The extra elements allow new points to be added to this Polygon without re-creating this array. The value of npoints sample code for java.awt.Polygon.npoints definition code for java.awt.Polygon.npoints is equal to the number of valid points in this Polygon.

 
See Also:
Polygon.addPoint(int, int) sample code for java.awt.Polygon.addPoint(int, int) definition code for java.awt.Polygon.addPoint(int, int)

ypoints

int[] ypoints
The array of y coordinates. The number of elements in this array might be more than the number of y coordinates in this 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.

 
See Also:
Polygon.addPoint(int, int) sample code for java.awt.Polygon.addPoint(int, int) definition code for java.awt.Polygon.addPoint(int, int)

bounds

Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  bounds
Bounds of the polygon. This value can be NULL. Please see the javadoc comments getBounds().

 
See Also:
Polygon.getBoundingBox() sample code for java.awt.Polygon.getBoundingBox() definition code for java.awt.Polygon.getBoundingBox() , Polygon.getBounds() sample code for java.awt.Polygon.getBounds() definition code for java.awt.Polygon.getBounds()

Class java.awt.PopupMenu sample code for java.awt.PopupMenu definition code for java.awt.PopupMenu extends Menu sample code for java.awt.Menu definition code for java.awt.Menu implements Serializable

serialVersionUID: -4620452533522760060L

Class java.awt.PopupMenu.AccessibleAWTPopupMenu sample code for java.awt.PopupMenu.AccessibleAWTPopupMenu definition code for java.awt.PopupMenu.AccessibleAWTPopupMenu extends Menu.AccessibleAWTMenu sample code for java.awt.Menu.AccessibleAWTMenu definition code for java.awt.Menu.AccessibleAWTMenu implements Serializable

serialVersionUID: -4282044795947239955L

Class java.awt.Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle extends Rectangle2D sample code for java.awt.geom.Rectangle2D definition code for java.awt.geom.Rectangle2D implements Serializable

serialVersionUID: -4345857070255674764L

Serialized Fields

x

int x
The x coordinate of the Rectangle.

 
See Also:
Rectangle.setLocation(int, int) sample code for java.awt.Rectangle.setLocation(int, int) definition code for java.awt.Rectangle.setLocation(int, int) , Rectangle.getLocation() sample code for java.awt.Rectangle.getLocation() definition code for java.awt.Rectangle.getLocation()

y

int y
The y coordinate of the Rectangle.

 
See Also:
Rectangle.setLocation(int, int) sample code for java.awt.Rectangle.setLocation(int, int) definition code for java.awt.Rectangle.setLocation(int, int) , Rectangle.getLocation() sample code for java.awt.Rectangle.getLocation() definition code for java.awt.Rectangle.getLocation()

width

int width
The width of the Rectangle.

 
Since:
JDK1.0.
See Also:
Rectangle.setSize(int, int) sample code for java.awt.Rectangle.setSize(int, int) definition code for java.awt.Rectangle.setSize(int, int) , Rectangle.getSize() sample code for java.awt.Rectangle.getSize() definition code for java.awt.Rectangle.getSize()

height

int height
The height of the Rectangle.

 
See Also:
Rectangle.setSize(int, int) sample code for java.awt.Rectangle.setSize(int, int) definition code for java.awt.Rectangle.setSize(int, int) , Rectangle.getSize() sample code for java.awt.Rectangle.getSize() definition code for java.awt.Rectangle.getSize()

Class java.awt.Scrollbar sample code for java.awt.Scrollbar definition code for java.awt.Scrollbar extends Component sample code for java.awt.Component definition code for java.awt.Component implements Serializable

serialVersionUID: 8451667562882310543L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Reads the 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.

Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless returns true
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , Scrollbar.writeObject(ObjectOutputStream) sample code for java.awt.Scrollbar.writeObject(java.io.ObjectOutputStream) definition code for java.awt.Scrollbar.writeObject(java.io.ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes default serializable fields to stream. Writes a list of serializable AdjustmentListeners 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 a String and an Object; the String indicates the type of object and is one of the following: adjustmentListenerK indicating an AdjustmentListener object
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) sample code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) definition code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) , Component.adjustmentListenerK sample code for java.awt.Component.adjustmentListenerK definition code for java.awt.Component.adjustmentListenerK , Scrollbar.readObject(ObjectInputStream) sample code for java.awt.Scrollbar.readObject(java.io.ObjectInputStream) definition code for java.awt.Scrollbar.readObject(java.io.ObjectInputStream)
Serialized Fields

value

int value
The value of the Scrollbar. This property must be greater than or equal to minimum and less than or equal to maximum - visibleAmount

 
See Also:
Scrollbar.getValue() sample code for java.awt.Scrollbar.getValue() definition code for java.awt.Scrollbar.getValue() , Scrollbar.setValue(int) sample code for java.awt.Scrollbar.setValue(int) definition code for java.awt.Scrollbar.setValue(int)

maximum

int maximum
The maximum value of the Scrollbar. This value must be greater than the minimum value.

 
See Also:
Scrollbar.getMaximum() sample code for java.awt.Scrollbar.getMaximum() definition code for java.awt.Scrollbar.getMaximum() , Scrollbar.setMaximum(int) sample code for java.awt.Scrollbar.setMaximum(int) definition code for java.awt.Scrollbar.setMaximum(int)

minimum

int minimum
The minimum value of the Scrollbar. This value must be less than the maximum value.

 
See Also:
Scrollbar.getMinimum() sample code for java.awt.Scrollbar.getMinimum() definition code for java.awt.Scrollbar.getMinimum() , Scrollbar.setMinimum(int) sample code for java.awt.Scrollbar.setMinimum(int) definition code for java.awt.Scrollbar.setMinimum(int)

visibleAmount

int visibleAmount
The size of the Scrollbar's bubble. When a scroll bar is used to select a range of values, the visibleAmount represents the size of this range. This is visually indicated by the size of the bubble.

 
See Also:
Scrollbar.getVisibleAmount() sample code for java.awt.Scrollbar.getVisibleAmount() definition code for java.awt.Scrollbar.getVisibleAmount() , Scrollbar.setVisibleAmount(int) sample code for java.awt.Scrollbar.setVisibleAmount(int) definition code for java.awt.Scrollbar.setVisibleAmount(int)

orientation

int orientation
The Scrollbar's orientation--being either horizontal or vertical. This value should be specified when the scrollbar is created.
orientation can be either : VERTICAL or HORIZONTAL only.

 
See Also:
Scrollbar.getOrientation() sample code for java.awt.Scrollbar.getOrientation() definition code for java.awt.Scrollbar.getOrientation() , Scrollbar.setOrientation(int) sample code for java.awt.Scrollbar.setOrientation(int) definition code for java.awt.Scrollbar.setOrientation(int)

lineIncrement

int lineIncrement
The amount by which the scrollbar value will change when going up or down by a line. This value must be greater than zero.

 
See Also:
Scrollbar.getLineIncrement() sample code for java.awt.Scrollbar.getLineIncrement() definition code for java.awt.Scrollbar.getLineIncrement() , Scrollbar.setLineIncrement(int) sample code for java.awt.Scrollbar.setLineIncrement(int) definition code for java.awt.Scrollbar.setLineIncrement(int)

pageIncrement

int pageIncrement
The amount by which the scrollbar value will change when going up or down by a page. This value must be greater than zero.

 
See Also:
Scrollbar.getPageIncrement() sample code for java.awt.Scrollbar.getPageIncrement() definition code for java.awt.Scrollbar.getPageIncrement() , Scrollbar.setPageIncrement(int) sample code for java.awt.Scrollbar.setPageIncrement(int) definition code for java.awt.Scrollbar.setPageIncrement(int)

scrollbarSerializedDataVersion

int scrollbarSerializedDataVersion
The scroll bar's serialized Data Version.

 

Class java.awt.Scrollbar.AccessibleAWTScrollBar sample code for java.awt.Scrollbar.AccessibleAWTScrollBar definition code for java.awt.Scrollbar.AccessibleAWTScrollBar extends Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent implements Serializable

serialVersionUID: -344337268523697807L

Class java.awt.ScrollPane sample code for java.awt.ScrollPane definition code for java.awt.ScrollPane extends Container sample code for java.awt.Container definition code for java.awt.Container implements Serializable

serialVersionUID: 7956609840827222915L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Reads default serializable fields to stream.

Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless()

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes default serializable fields to stream.

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
Serialized Fields

scrollbarDisplayPolicy

int scrollbarDisplayPolicy
There 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)

 
See Also:
ScrollPane.getScrollbarDisplayPolicy() sample code for java.awt.ScrollPane.getScrollbarDisplayPolicy() definition code for java.awt.ScrollPane.getScrollbarDisplayPolicy()

vAdjustable

ScrollPaneAdjustable sample code for java.awt.ScrollPaneAdjustable definition code for java.awt.ScrollPaneAdjustable  vAdjustable
An adjustable vertical scrollbar. It is important to note that you must NOT call 3 Adjustable methods, namely: setMinimum(), setMaximum(), setVisibleAmount().

 
See Also:
ScrollPane.getVAdjustable() sample code for java.awt.ScrollPane.getVAdjustable() definition code for java.awt.ScrollPane.getVAdjustable()

hAdjustable

ScrollPaneAdjustable sample code for java.awt.ScrollPaneAdjustable definition code for java.awt.ScrollPaneAdjustable  hAdjustable
An adjustable horizontal scrollbar. It is important to note that you must NOT call 3 Adjustable methods, namely: setMinimum(), setMaximum(), setVisibleAmount().

 
See Also:
ScrollPane.getHAdjustable() sample code for java.awt.ScrollPane.getHAdjustable() definition code for java.awt.ScrollPane.getHAdjustable()

wheelScrollingEnabled

boolean wheelScrollingEnabled
Indicates whether or not scrolling should take place when a MouseWheelEvent is received.

 
Since:
1.4

Class java.awt.ScrollPane.AccessibleAWTScrollPane sample code for java.awt.ScrollPane.AccessibleAWTScrollPane definition code for java.awt.ScrollPane.AccessibleAWTScrollPane extends Container.AccessibleAWTContainer sample code for java.awt.Container.AccessibleAWTContainer definition code for java.awt.Container.AccessibleAWTContainer implements Serializable

serialVersionUID: 6100703663886637L

Class java.awt.ScrollPaneAdjustable sample code for java.awt.ScrollPaneAdjustable definition code for java.awt.ScrollPaneAdjustable extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -3359745691033257079L

Serialized Fields

sp

ScrollPane sample code for java.awt.ScrollPane definition code for java.awt.ScrollPane  sp
The ScrollPane this object is a scrollbar of.

 

orientation

int orientation
Orientation of this scrollbar.

 
See Also:
ScrollPaneAdjustable.getOrientation() sample code for java.awt.ScrollPaneAdjustable.getOrientation() definition code for java.awt.ScrollPaneAdjustable.getOrientation() , Adjustable.HORIZONTAL sample code for java.awt.Adjustable.HORIZONTAL definition code for java.awt.Adjustable.HORIZONTAL , Adjustable.VERTICAL sample code for java.awt.Adjustable.VERTICAL definition code for java.awt.Adjustable.VERTICAL

value

int value
The value of this scrollbar. value should be greater than minimum and less than maximum

 
See Also:
ScrollPaneAdjustable.getValue() sample code for java.awt.ScrollPaneAdjustable.getValue() definition code for java.awt.ScrollPaneAdjustable.getValue() , ScrollPaneAdjustable.setValue(int) sample code for java.awt.ScrollPaneAdjustable.setValue(int) definition code for java.awt.ScrollPaneAdjustable.setValue(int)

minimum

int minimum
The minimum value of this scrollbar. This value can only be set by the ScrollPane.

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.

 
See Also:
ScrollPaneAdjustable.getMinimum() sample code for java.awt.ScrollPaneAdjustable.getMinimum() definition code for java.awt.ScrollPaneAdjustable.getMinimum() , ScrollPaneAdjustable.setSpan(int, int, int) sample code for java.awt.ScrollPaneAdjustable.setSpan(int, int, int) definition code for java.awt.ScrollPaneAdjustable.setSpan(int, int, int)

maximum

int maximum
The maximum value of this scrollbar. This value can only be set by the ScrollPane.

 
See Also:
ScrollPaneAdjustable.getMaximum() sample code for java.awt.ScrollPaneAdjustable.getMaximum() definition code for java.awt.ScrollPaneAdjustable.getMaximum() , ScrollPaneAdjustable.setSpan(int, int, int) sample code for java.awt.ScrollPaneAdjustable.setSpan(int, int, int) definition code for java.awt.ScrollPaneAdjustable.setSpan(int, int, int)

visibleAmount

int visibleAmount
The size of the visible portion of this scrollbar. This value can only be set by the ScrollPane.

 
See Also:
ScrollPaneAdjustable.getVisibleAmount() sample code for java.awt.ScrollPaneAdjustable.getVisibleAmount() definition code for java.awt.ScrollPaneAdjustable.getVisibleAmount() , ScrollPaneAdjustable.setSpan(int, int, int) sample code for java.awt.ScrollPaneAdjustable.setSpan(int, int, int) definition code for java.awt.ScrollPaneAdjustable.setSpan(int, int, int)

unitIncrement

int unitIncrement
The amount by which the scrollbar value will change when going up or down by a line. This value should be a non negative integer.

 
See Also:
ScrollPaneAdjustable.getUnitIncrement() sample code for java.awt.ScrollPaneAdjustable.getUnitIncrement() definition code for java.awt.ScrollPaneAdjustable.getUnitIncrement() , ScrollPaneAdjustable.setUnitIncrement(int) sample code for java.awt.ScrollPaneAdjustable.setUnitIncrement(int) definition code for java.awt.ScrollPaneAdjustable.setUnitIncrement(int)

blockIncrement

int blockIncrement
The amount by which the scrollbar value will change when going up or down by a page. This value should be a non negative integer.

 
See Also:
ScrollPaneAdjustable.getBlockIncrement() sample code for java.awt.ScrollPaneAdjustable.getBlockIncrement() definition code for java.awt.ScrollPaneAdjustable.getBlockIncrement() , ScrollPaneAdjustable.setBlockIncrement(int) sample code for java.awt.ScrollPaneAdjustable.setBlockIncrement(int) definition code for java.awt.ScrollPaneAdjustable.setBlockIncrement(int)

adjustmentListener

AdjustmentListener sample code for java.awt.event.AdjustmentListener definition code for java.awt.event.AdjustmentListener  adjustmentListener

Class java.awt.SystemColor sample code for java.awt.SystemColor definition code for java.awt.SystemColor extends Color sample code for java.awt.Color definition code for java.awt.Color implements Serializable

serialVersionUID: 4503142729533789064L

Class java.awt.TextArea sample code for java.awt.TextArea definition code for java.awt.TextArea extends TextComponent sample code for java.awt.TextComponent definition code for java.awt.TextComponent implements Serializable

serialVersionUID: 3692302836626095722L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Read the ObjectInputStream.

Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless()
Serialized Fields

rows

int rows
The number of rows in the TextArea. This parameter will determine the text area's height. Guaranteed to be non-negative.

 
See Also:
TextArea.getRows() sample code for java.awt.TextArea.getRows() definition code for java.awt.TextArea.getRows() , TextArea.setRows(int) sample code for java.awt.TextArea.setRows(int) definition code for java.awt.TextArea.setRows(int)

columns

int columns
The number of columns in the 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.

 
See Also:
TextArea.setColumns(int) sample code for java.awt.TextArea.setColumns(int) definition code for java.awt.TextArea.setColumns(int) , TextArea.getColumns() sample code for java.awt.TextArea.getColumns() definition code for java.awt.TextArea.getColumns()

scrollbarVisibility

int scrollbarVisibility
Determines 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() sample code for java.awt.TextArea.getScrollbarVisibility() definition code for java.awt.TextArea.getScrollbarVisibility()

textAreaSerializedDataVersion

int textAreaSerializedDataVersion
The textArea Serialized Data Version.

 

Class java.awt.TextArea.AccessibleAWTTextArea sample code for java.awt.TextArea.AccessibleAWTTextArea definition code for java.awt.TextArea.AccessibleAWTTextArea extends TextComponent.AccessibleAWTTextComponent sample code for java.awt.TextComponent.AccessibleAWTTextComponent definition code for java.awt.TextComponent.AccessibleAWTTextComponent implements Serializable

serialVersionUID: 3472827823632144419L

Class java.awt.TextComponent sample code for java.awt.TextComponent definition code for java.awt.TextComponent extends Component sample code for java.awt.Component definition code for java.awt.Component implements Serializable

serialVersionUID: -2214773872412987419L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Read 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 sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
#removeTextListener(), #addTextListener(), GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless()

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes 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:
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) sample code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) definition code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) , Component.textListenerK sample code for java.awt.Component.textListenerK definition code for java.awt.Component.textListenerK
Serialized Fields

text

String sample code for java.lang.String definition code for java.lang.String  text
The value of the text. A null value is the same as "".

 
See Also:
TextComponent.setText(String) sample code for java.awt.TextComponent.setText(java.lang.String) definition code for java.awt.TextComponent.setText(java.lang.String) , TextComponent.getText() sample code for java.awt.TextComponent.getText() definition code for java.awt.TextComponent.getText()

editable

boolean editable
A boolean indicating whether or not this TextComponent is editable. It will be true if the text component is editable and false if not.

 
See Also:
TextComponent.isEditable() sample code for java.awt.TextComponent.isEditable() definition code for java.awt.TextComponent.isEditable()

selectionStart

int selectionStart
The selection refers to the selected text, and the selectionStart is the start position of the selected text.

 
See Also:
TextComponent.getSelectionStart() sample code for java.awt.TextComponent.getSelectionStart() definition code for java.awt.TextComponent.getSelectionStart() , TextComponent.setSelectionStart(int) sample code for java.awt.TextComponent.setSelectionStart(int) definition code for java.awt.TextComponent.setSelectionStart(int)

selectionEnd

int selectionEnd
The selection refers to the selected text, and the selectionEnd is the end position of the selected text.

 
See Also:
TextComponent.getSelectionEnd() sample code for java.awt.TextComponent.getSelectionEnd() definition code for java.awt.TextComponent.getSelectionEnd() , TextComponent.setSelectionEnd(int) sample code for java.awt.TextComponent.setSelectionEnd(int) definition code for java.awt.TextComponent.setSelectionEnd(int)

backgroundSetByClientCode

boolean backgroundSetByClientCode

textComponentSerializedDataVersion

int textComponentSerializedDataVersion
The textComponent SerializedDataVersion.

 

checkForEnableIM

boolean checkForEnableIM

Class java.awt.TextComponent.AccessibleAWTTextComponent sample code for java.awt.TextComponent.AccessibleAWTTextComponent definition code for java.awt.TextComponent.AccessibleAWTTextComponent extends Component.AccessibleAWTComponent sample code for java.awt.Component.AccessibleAWTComponent definition code for java.awt.Component.AccessibleAWTComponent implements Serializable

serialVersionUID: 3631432373506317811L

Class java.awt.TextField sample code for java.awt.TextField definition code for java.awt.TextField extends TextComponent sample code for java.awt.TextComponent definition code for java.awt.TextComponent implements Serializable

serialVersionUID: -2966288784432217853L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Read 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 sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless() returns true
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
TextField.removeActionListener(ActionListener) sample code for java.awt.TextField.removeActionListener(java.awt.event.ActionListener) definition code for java.awt.TextField.removeActionListener(java.awt.event.ActionListener) , TextField.addActionListener(ActionListener) sample code for java.awt.TextField.addActionListener(java.awt.event.ActionListener) definition code for java.awt.TextField.addActionListener(java.awt.event.ActionListener) , GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless()

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes 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:
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
AWTEventMulticaster.save(ObjectOutputStream, String, EventListener) sample code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) definition code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) , Component.actionListenerK sample code for java.awt.Component.actionListenerK definition code for java.awt.Component.actionListenerK
Serialized Fields

columns

int columns
The number of columns in the text field. A column is an approximate average character width that is platform-dependent. Guaranteed to be non-negative.

 
See Also:
TextField.setColumns(int) sample code for java.awt.TextField.setColumns(int) definition code for java.awt.TextField.setColumns(int) , TextField.getColumns() sample code for java.awt.TextField.getColumns() definition code for java.awt.TextField.getColumns()

echoChar

char echoChar
The 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.

 
See Also:
TextField.getEchoChar() sample code for java.awt.TextField.getEchoChar() definition code for java.awt.TextField.getEchoChar() , TextField.setEchoChar(char) sample code for java.awt.TextField.setEchoChar(char) definition code for java.awt.TextField.setEchoChar(char) , TextField.echoCharIsSet() sample code for java.awt.TextField.echoCharIsSet() definition code for java.awt.TextField.echoCharIsSet()

textFieldSerializedDataVersion

int textFieldSerializedDataVersion
The textField Serialized Data Version.

 

Class java.awt.TextField.AccessibleAWTTextField sample code for java.awt.TextField.AccessibleAWTTextField definition code for java.awt.TextField.AccessibleAWTTextField extends TextComponent.AccessibleAWTTextComponent sample code for java.awt.TextComponent.AccessibleAWTTextComponent definition code for java.awt.TextComponent.AccessibleAWTTextComponent implements Serializable

serialVersionUID: 6219164359235943158L

Class java.awt.Window sample code for java.awt.Window definition code for java.awt.Window extends Container sample code for java.awt.Container definition code for java.awt.Container implements Serializable

serialVersionUID: 4497834738069338734L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException 
Reads the 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.

Throws:
HeadlessException sample code for java.awt.HeadlessException definition code for java.awt.HeadlessException - if GraphicsEnvironment.isHeadless returns true
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
GraphicsEnvironment.isHeadless() sample code for java.awt.GraphicsEnvironment.isHeadless() definition code for java.awt.GraphicsEnvironment.isHeadless() , Window.writeObject(java.io.ObjectOutputStream) sample code for java.awt.Window.writeObject(java.io.ObjectOutputStream) definition code for java.awt.Window.writeObject(java.io.ObjectOutputStream)

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes default serializable fields to stream. Writes a list of serializable WindowListeners and WindowFocusListeners as optional data. Writes a list of child windows as optional data.

Serial Data:
null 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 object
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
See Also:
AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) sample code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) definition code for java.awt.AWTEventMulticaster.save(java.io.ObjectOutputStream, java.lang.String, java.util.EventListener) , Component.windowListenerK sample code for java.awt.Component.windowListenerK definition code for java.awt.Component.windowListenerK , Component.windowFocusListenerK sample code for java.awt.Component.windowFocusListenerK definition code for java.awt.Component.windowFocusListenerK , Component.ownedWindowK sample code for java.awt.Component.ownedWindowK definition code for java.awt.Component.ownedWindowK , Window.readObject(ObjectInputStream) sample code for java.awt.Window.readObject(java.io.ObjectInputStream) definition code for java.awt.Window.readObject(java.io.ObjectInputStream)
Serialized Fields

warningString

String sample code for java.lang.String definition code for java.lang.String  warningString
This 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() sample code for java.awt.Window.getWarningString() definition code for java.awt.Window.getWarningString()

syncLWRequests

boolean syncLWRequests

state

int state
An Integer value representing the Window State.

 
Since:
1.2
See Also:
Window.show() sample code for java.awt.Window.show() definition code for java.awt.Window.show()

alwaysOnTop

boolean alwaysOnTop
A boolean value representing Window always-on-top state

 
Since:
1.5
See Also:
Window.setAlwaysOnTop(boolean) sample code for java.awt.Window.setAlwaysOnTop(boolean) definition code for java.awt.Window.setAlwaysOnTop(boolean) , Window.isAlwaysOnTop() sample code for java.awt.Window.isAlwaysOnTop() definition code for java.awt.Window.isAlwaysOnTop()

focusMgr

java.awt.FocusManager focusMgr
Unused. Maintained for serialization backward-compatibility.

 
Since:
1.2

focusableWindowState

boolean focusableWindowState
Indicates whether this Window can become the focused Window.

 
Since:
1.4
See Also:
Window.getFocusableWindowState() sample code for java.awt.Window.getFocusableWindowState() definition code for java.awt.Window.getFocusableWindowState() , Window.setFocusableWindowState(boolean) sample code for java.awt.Window.setFocusableWindowState(boolean) definition code for java.awt.Window.setFocusableWindowState(boolean)

windowSerializedDataVersion

int windowSerializedDataVersion
The window serialized data version.

 

locationByPlatform

boolean locationByPlatform

Class java.awt.Window.AccessibleAWTWindow sample code for java.awt.Window.AccessibleAWTWindow definition code for java.awt.Window.AccessibleAWTWindow extends Container.AccessibleAWTContainer sample code for java.awt.Container.AccessibleAWTContainer definition code for java.awt.Container.AccessibleAWTContainer implements Serializable

serialVersionUID: 4215068635060671780L


Package java.awt.color

Class java.awt.color.CMMException sample code for java.awt.color.CMMException definition code for java.awt.color.CMMException extends RuntimeException sample code for java.lang.RuntimeException definition code for java.lang.RuntimeException implements Serializable

Class java.awt.color.ColorSpace sample code for java.awt.color.ColorSpace definition code for java.awt.color.ColorSpace extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -409452704308689724L

Serialized Fields

type

int type

numComponents

int numComponents

Class java.awt.color.ICC_ColorSpace sample code for java.awt.color.ICC_ColorSpace definition code for java.awt.color.ICC_ColorSpace extends ColorSpace sample code for java.awt.color.ColorSpace definition code for java.awt.color.ColorSpace implements Serializable

serialVersionUID: 3455889114070431483L

Serialized Fields

thisProfile

ICC_Profile sample code for java.awt.color.ICC_Profile definition code for java.awt.color.ICC_Profile  thisProfile

minVal

float[] minVal

maxVal

float[] maxVal

diffMinMax

float[] diffMinMax

invDiffMinMax

float[] invDiffMinMax

needScaleInit

boolean needScaleInit

Class java.awt.color.ICC_Profile sample code for java.awt.color.ICC_Profile definition code for java.awt.color.ICC_Profile extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -3938515861990936766L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException 
Reads default serializable fields from the stream. Reads from the stream a string and an array of bytes as additional data.

Serial Data:
The String is the name of one of CS_* constants defined in the ColorSpace sample code for java.awt.color.ColorSpace definition code for java.awt.color.ColorSpace class if the profile object is a profile for a predefined color space (for example "CS_sRGB"). The string is null otherwise.

The byte[] array is the profile data for the profile. It will usually be null for the predefined profiles.

If the string is recognized as a constant name for predefined color space the object will be resolved into profile obtained with getInstance(int cspace) and the profile data are ignored. Otherwise the object will be resolved into profile obtained with getInstance(byte[] data).

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - thrown by ObjectInputStream.
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException - thrown by ObjectInputStream.
See Also:
ICC_Profile.readResolve() sample code for java.awt.color.ICC_Profile.readResolve() definition code for java.awt.color.ICC_Profile.readResolve() , ICC_Profile.getInstance(int) sample code for java.awt.color.ICC_Profile.getInstance(int) definition code for java.awt.color.ICC_Profile.getInstance(int) , ICC_Profile.getInstance(byte[]) sample code for java.awt.color.ICC_Profile.getInstance(byte[]) definition code for java.awt.color.ICC_Profile.getInstance(byte[])

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Writes default serializable fields to the stream. Writes a string and an array of bytes to the stream as additional data.

Serial Data:
The String is the name of one of CS_* constants defined in the ColorSpace sample code for java.awt.color.ColorSpace definition code for java.awt.color.ColorSpace class if the profile object is a profile for a predefined color space (for example "CS_sRGB"). The string is null otherwise.

The byte[] array is the profile data for the profile. For predefined color spaces null is written instead of the profile data. If in the future versions of Java API new predefined color spaces will be added, future versions of this class may choose to write for new predefined color spaces not only the color space name, but the profile data as well so that older versions could still deserialize the object.

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - thrown by ObjectInputStream.

readResolve

protected Object sample code for java.lang.Object definition code for java.lang.Object  readResolve()
                      throws ObjectStreamException sample code for java.io.ObjectStreamException definition code for java.io.ObjectStreamException 
Resolves instances being deserialized into instances registered with CMM.

Throws:
ObjectStreamException sample code for java.io.ObjectStreamException definition code for java.io.ObjectStreamException - never thrown, but mandated by the serialization spec.
Serialized Fields

iccProfileSerializedDataVersion

int iccProfileSerializedDataVersion
Version of the format of additional serialized data in the stream. Version 1 corresponds to Java 2 Platform, v1.3.

 
Since:
1.3

Class java.awt.color.ICC_ProfileGray sample code for java.awt.color.ICC_ProfileGray definition code for java.awt.color.ICC_ProfileGray extends ICC_Profile sample code for java.awt.color.ICC_Profile definition code for java.awt.color.ICC_Profile implements Serializable

Class java.awt.color.ICC_ProfileRGB sample code for java.awt.color.ICC_ProfileRGB definition code for java.awt.color.ICC_ProfileRGB extends ICC_Profile sample code for java.awt.color.ICC_Profile definition code for java.awt.color.ICC_Profile implements Serializable

Class java.awt.color.ProfileDataException sample code for java.awt.color.ProfileDataException definition code for java.awt.color.ProfileDataException extends RuntimeException sample code for java.lang.RuntimeException definition code for java.lang.RuntimeException implements Serializable


Package java.awt.datatransfer

Class java.awt.datatransfer.DataFlavor sample code for java.awt.datatransfer.DataFlavor definition code for java.awt.datatransfer.DataFlavor extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: 8367026044764648243L

Serialization Methods

readExternal

public void readExternal(ObjectInput sample code for java.io.ObjectInput definition code for java.io.ObjectInput  is)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException ,
                         ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException 
Restores this DataFlavor from a Serialized state.

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - if I/O errors occur
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException - If the class for an object being restored cannot be found.

writeExternal

public void writeExternal(ObjectOutput sample code for java.io.ObjectOutput definition code for java.io.ObjectOutput  os)
                   throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Serializes this DataFlavor.

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException - Includes any I/O exceptions that may occur

Class java.awt.datatransfer.FlavorEvent sample code for java.awt.datatransfer.FlavorEvent definition code for java.awt.datatransfer.FlavorEvent extends EventObject sample code for java.util.EventObject definition code for java.util.EventObject implements Serializable

Class java.awt.datatransfer.UnsupportedFlavorException sample code for java.awt.datatransfer.UnsupportedFlavorException definition code for java.awt.datatransfer.UnsupportedFlavorException extends Exception sample code for java.lang.Exception definition code for java.lang.Exception implements Serializable

serialVersionUID: 5383814944251665601L


Package java.awt.dnd

Class java.awt.dnd.DragGestureEvent sample code for java.awt.dnd.DragGestureEvent definition code for java.awt.dnd.DragGestureEvent extends EventObject sample code for java.util.EventObject definition code for java.util.EventObject implements Serializable

serialVersionUID: 9080172649166731306L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException 
Deserializes this DragGestureEvent. This method first performs default deserialization for all non-transient fields. An attempt is then made to deserialize this object's List of gesture events as well. This is first attempted by deserializing the field events, because, in releases prior to 1.4, a non-transient field of this name stored the List of gesture events. If this fails, the next object in the stream is used instead. If the resulting List is null, this object's List of gesture events is set to an empty List.

Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
Since:
1.4

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Serializes this DragGestureEvent. Performs default serialization and then writes out this object's List of gesture events if and only if the List can be serialized. If not, null is written instead. In this case, a DragGestureEvent created from the resulting deserialized stream will contain an empty List of gesture events.

Serial Data:
The default serializable fields, in alphabetical order, followed by either a List instance, or null.
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
Since:
1.4
Serialized Fields

dragSource

DragSource sample code for java.awt.dnd.DragSource definition code for java.awt.dnd.DragSource  dragSource
The DragSource associated with this DragGestureEvent.

 

component

Component sample code for java.awt.Component definition code for java.awt.Component  component
The Component associated with this DragGestureEvent.

 

origin

Point sample code for java.awt.Point definition code for java.awt.Point  origin
The origin of the drag.

 

action

int action
The user's preferred action.

 

Class java.awt.dnd.DragGestureRecognizer sample code for java.awt.dnd.DragGestureRecognizer definition code for java.awt.dnd.DragGestureRecognizer extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: 8996673345831063337L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException 
Deserializes this DragGestureRecognizer. This method first performs default deserialization for all non-transient fields. This object's DragGestureListener is then deserialized as well by using the next object in the stream.

Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
Since:
1.4

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Serializes this DragGestureRecognizer. This method first performs default serialization. Then, this object's DragGestureListener is written out if and only if it can be serialized. If not, null is written instead.

Serial Data:
The default serializable fields, in alphabetical order, followed by either a DragGestureListener, or null.
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
Since:
1.4
Serialized Fields

dragSource

DragSource sample code for java.awt.dnd.DragSource definition code for java.awt.dnd.DragSource  dragSource
The DragSource associated with this DragGestureRecognizer.

 

component

Component sample code for java.awt.Component definition code for java.awt.Component  component
The Component associated with this DragGestureRecognizer.

 

sourceActions

int sourceActions
An int representing the type(s) of action(s) used in this Drag and Drop operation.

 

events

ArrayList sample code for java.util.ArrayList definition code for java.util.ArrayList <E> events
The list of events (in order) that the DragGestureRecognizer "recognized" as a "gesture" that triggers a drag.

 

Class java.awt.dnd.DragSource sample code for java.awt.dnd.DragSource definition code for java.awt.dnd.DragSource extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: 6236096958971414066L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException 
Deserializes this DragSource. This method first performs default deserialization. Next, this object's FlavorMap is deserialized by using the next object in the stream. If the resulting FlavorMap is null, this object's FlavorMap is set to the default FlavorMap for this thread's ClassLoader. Next, this object's listeners are deserialized by reading a null-terminated sequence of 0 or more key/value pairs from the stream:

Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
Since:
1.4
See Also:
SystemFlavorMap.getDefaultFlavorMap() sample code for java.awt.datatransfer.SystemFlavorMap.getDefaultFlavorMap() definition code for java.awt.datatransfer.SystemFlavorMap.getDefaultFlavorMap()

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Serializes this DragSource. This method first performs default serialization. Next, it writes out this object's FlavorMap if and only if it can be serialized. If not, null is written instead. Next, it writes out Serializable listeners registered with this object. Listeners are written in a null-terminated sequence of 0 or more pairs. The pair consists of a String and an Object; the String indicates the type of the Object and is one of the following:

Serial Data:
Either a FlavorMap instance, or null, followed by a null-terminated sequence of 0 or more pairs; the pair consists of a String and an Object; the String indicates the type of the Object and is one of the following:
  • dragSourceListenerK indicating a DragSourceListener object;
  • dragSourceMotionListenerK indicating a DragSourceMotionListener object.
.
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
Since:
1.4

Class java.awt.dnd.DragSourceContext sample code for java.awt.dnd.DragSourceContext definition code for java.awt.dnd.DragSourceContext extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -115407898692194719L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException 
Deserializes this DragSourceContext. This method first performs default deserialization for all non-transient fields. This object's Transferable and DragSourceListener are then deserialized as well by using the next two objects in the stream. If the resulting Transferable is null, this object's Transferable is set to a dummy Transferable which supports no DataFlavors.

Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
Since:
1.4

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Serializes this DragSourceContext. This method first performs default serialization. Next, this object's Transferable is written out if and only if it can be serialized. If not, null is written instead. In this case, a DragSourceContext created from the resulting deserialized stream will contain a dummy Transferable which supports no DataFlavors. Finally, this object's DragSourceListener is written out if and only if it can be serialized. If not, null is written instead.

Serial Data:
The default serializable fields, in alphabetical order, followed by either a Transferable instance, or null, followed by either a DragSourceListener instance, or null.
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
Since:
1.4
Serialized Fields

trigger

DragGestureEvent sample code for java.awt.dnd.DragGestureEvent definition code for java.awt.dnd.DragGestureEvent  trigger
The event which triggered the start of the drag.

 

cursor

Cursor sample code for java.awt.Cursor definition code for java.awt.Cursor  cursor
The current drag cursor.

 

useCustomCursor

boolean useCustomCursor
true if the custom drag cursor is used instead of the default one.

 

sourceActions

int sourceActions
A bitwise mask of DnDConstants that represents the set of drop actions supported by the drag source for the drag operation associated with this DragSourceContext.

 

Class java.awt.dnd.DragSourceDragEvent sample code for java.awt.dnd.DragSourceDragEvent definition code for java.awt.dnd.DragSourceDragEvent extends DragSourceEvent sample code for java.awt.dnd.DragSourceEvent definition code for java.awt.dnd.DragSourceEvent implements Serializable

serialVersionUID: 481346297933902471L

Serialized Fields

targetActions

int targetActions
The target drop action.

 

dropAction

int dropAction
The user drop action.

 

gestureModifiers

int gestureModifiers
The state of the input device modifiers associated with the user gesture.

 

invalidModifiers

boolean invalidModifiers
Indicates whether the gestureModifiers are invalid.

 

Class java.awt.dnd.DragSourceDropEvent sample code for java.awt.dnd.DragSourceDropEvent definition code for java.awt.dnd.DragSourceDropEvent extends DragSourceEvent sample code for java.awt.dnd.DragSourceEvent definition code for java.awt.dnd.DragSourceEvent implements Serializable

serialVersionUID: -5571321229470821891L

Serialized Fields

dropSuccess

boolean dropSuccess
true if the drop was successful.

 

dropAction

int dropAction
The drop action.

 

Class java.awt.dnd.DragSourceEvent sample code for java.awt.dnd.DragSourceEvent definition code for java.awt.dnd.DragSourceEvent extends EventObject sample code for java.util.EventObject definition code for java.util.EventObject implements Serializable

serialVersionUID: -763287114604032641L

Serialized Fields

locationSpecified

boolean locationSpecified
The boolean indicating whether the cursor location is specified for this event.

 

x

int x
The horizontal coordinate for the cursor location at the moment this event occured if the cursor location is specified for this event; otherwise zero.

 

y

int y
The vertical coordinate for the cursor location at the moment this event occured if the cursor location is specified for this event; otherwise zero.

 

Class java.awt.dnd.DropTarget sample code for java.awt.dnd.DropTarget definition code for java.awt.dnd.DropTarget extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -6283860791671019047L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException 
Deserializes this DropTarget. This method first performs default deserialization for all non-transient fields. An attempt is then made to deserialize this object's DropTargetListener as well. This is first attempted by deserializing the field dtListener, because, in releases prior to 1.4, a non-transient field of this name stored the DropTargetListener. If this fails, the next object in the stream is used instead.

Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
Since:
1.4

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Serializes this DropTarget. Performs default serialization, and then writes out this object's DropTargetListener if and only if it can be serialized. If not, null is written instead.

Serial Data:
The default serializable fields, in alphabetical order, followed by either a DropTargetListener instance, or null.
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
Since:
1.4
Serialized Fields

dropTargetContext

DropTargetContext sample code for java.awt.dnd.DropTargetContext definition code for java.awt.dnd.DropTargetContext  dropTargetContext
The DropTargetContext associated with this DropTarget.

 

component

Component sample code for java.awt.Component definition code for java.awt.Component  component
The Component associated with this DropTarget.

 

actions

int actions
Default permissible actions supported by this DropTarget.

 
See Also:
DropTarget.setDefaultActions(int) sample code for java.awt.dnd.DropTarget.setDefaultActions(int) definition code for java.awt.dnd.DropTarget.setDefaultActions(int) , DropTarget.getDefaultActions() sample code for java.awt.dnd.DropTarget.getDefaultActions() definition code for java.awt.dnd.DropTarget.getDefaultActions()

active

boolean active
true if the DropTarget is accepting Drag & Drop operations.

 

Class java.awt.dnd.DropTargetContext sample code for java.awt.dnd.DropTargetContext definition code for java.awt.dnd.DropTargetContext extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -634158968993743371L

Serialized Fields

dropTarget

DropTarget sample code for java.awt.dnd.DropTarget definition code for java.awt.dnd.DropTarget  dropTarget
The DropTarget associated with this DropTargetContext.

 

Class java.awt.dnd.DropTargetDragEvent sample code for java.awt.dnd.DropTargetDragEvent definition code for java.awt.dnd.DropTargetDragEvent extends DropTargetEvent sample code for java.awt.dnd.DropTargetEvent definition code for java.awt.dnd.DropTargetEvent implements Serializable

serialVersionUID: -8422265619058953682L

Serialized Fields

location

Point sample code for java.awt.Point definition code for java.awt.Point  location
The location of the drag cursor's hotspot in Component coordinates.

 

actions

int actions
The source drop actions.

 

dropAction

int dropAction
The user drop action.

 

Class java.awt.dnd.DropTargetDropEvent sample code for java.awt.dnd.DropTargetDropEvent definition code for java.awt.dnd.DropTargetDropEvent extends DropTargetEvent sample code for java.awt.dnd.DropTargetEvent definition code for java.awt.dnd.DropTargetEvent implements Serializable

serialVersionUID: -1721911170440459322L

Serialized Fields

location

Point sample code for java.awt.Point definition code for java.awt.Point  location
The location of the drag cursor's hotspot in Component coordinates.

 

actions

int actions
The source drop actions.

 

dropAction

int dropAction
The user drop action.

 

isLocalTx

boolean isLocalTx
true if the source is in the same JVM as the target.

 

Class java.awt.dnd.DropTargetEvent sample code for java.awt.dnd.DropTargetEvent definition code for java.awt.dnd.DropTargetEvent extends EventObject sample code for java.util.EventObject definition code for java.util.EventObject implements Serializable

serialVersionUID: 2821229066521922993L

Serialized Fields

context

DropTargetContext sample code for java.awt.dnd.DropTargetContext definition code for java.awt.dnd.DropTargetContext  context
The DropTargetContext associated with this DropTargetEvent.

 

Class java.awt.dnd.InvalidDnDOperationException sample code for java.awt.dnd.InvalidDnDOperationException definition code for java.awt.dnd.InvalidDnDOperationException extends IllegalStateException sample code for java.lang.IllegalStateException definition code for java.lang.IllegalStateException implements Serializable

Class java.awt.dnd.MouseDragGestureRecognizer sample code for java.awt.dnd.MouseDragGestureRecognizer definition code for java.awt.dnd.MouseDragGestureRecognizer extends DragGestureRecognizer sample code for java.awt.dnd.DragGestureRecognizer definition code for java.awt.dnd.DragGestureRecognizer implements Serializable

serialVersionUID: 6220099344182281120L


Package java.awt.event

Class java.awt.event.ActionEvent sample code for java.awt.event.ActionEvent definition code for java.awt.event.ActionEvent extends AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent implements Serializable

serialVersionUID: -7671078796273832149L

Serialized Fields

actionCommand

String sample code for java.lang.String definition code for java.lang.String  actionCommand
The 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() sample code for java.awt.event.ActionEvent.getActionCommand() definition code for java.awt.event.ActionEvent.getActionCommand()

when

long when
Timestamp 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() sample code for java.awt.event.ActionEvent.getWhen() definition code for java.awt.event.ActionEvent.getWhen()

modifiers

int modifiers
This 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() sample code for java.awt.event.ActionEvent.getModifiers() definition code for java.awt.event.ActionEvent.getModifiers()

Class java.awt.event.AdjustmentEvent sample code for java.awt.event.AdjustmentEvent definition code for java.awt.event.AdjustmentEvent extends AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent implements Serializable

serialVersionUID: 5700290645205279921L

Serialized Fields

adjustable

Adjustable sample code for java.awt.Adjustable definition code for java.awt.Adjustable  adjustable
The adjustable object that fired the event.

 
See Also:
AdjustmentEvent.getAdjustable() sample code for java.awt.event.AdjustmentEvent.getAdjustable() definition code for java.awt.event.AdjustmentEvent.getAdjustable()

value

int value
value will contain the new value of the adjustable object. This value will always be in a range associated adjustable object.

 
See Also:
AdjustmentEvent.getValue() sample code for java.awt.event.AdjustmentEvent.getValue() definition code for java.awt.event.AdjustmentEvent.getValue()

adjustmentType

int adjustmentType
The 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.

 
See Also:
AdjustmentEvent.getAdjustmentType() sample code for java.awt.event.AdjustmentEvent.getAdjustmentType() definition code for java.awt.event.AdjustmentEvent.getAdjustmentType()

isAdjusting

boolean isAdjusting
The isAdjusting is true if the event is one of the series of multiple adjustment events.

 
Since:
1.4
See Also:
AdjustmentEvent.getValueIsAdjusting() sample code for java.awt.event.AdjustmentEvent.getValueIsAdjusting() definition code for java.awt.event.AdjustmentEvent.getValueIsAdjusting()

Class java.awt.event.ComponentEvent sample code for java.awt.event.ComponentEvent definition code for java.awt.event.ComponentEvent extends AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent implements Serializable

serialVersionUID: 8101406823902992965L

Class java.awt.event.ContainerEvent sample code for java.awt.event.ContainerEvent definition code for java.awt.event.ContainerEvent extends ComponentEvent sample code for java.awt.event.ComponentEvent definition code for java.awt.event.ComponentEvent implements Serializable

serialVersionUID: -4114942250539772041L

Serialized Fields

child

Component sample code for java.awt.Component definition code for java.awt.Component  child
The non-null component that is being added or removed from the Container.

 
See Also:
ContainerEvent.getChild() sample code for java.awt.event.ContainerEvent.getChild() definition code for java.awt.event.ContainerEvent.getChild()

Class java.awt.event.FocusEvent sample code for java.awt.event.FocusEvent definition code for java.awt.event.FocusEvent extends ComponentEvent sample code for java.awt.event.ComponentEvent definition code for java.awt.event.ComponentEvent implements Serializable

serialVersionUID: 523753786457416396L

Serialized Fields

temporary

boolean temporary
A 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() sample code for java.awt.event.FocusEvent.isTemporary() definition code for java.awt.event.FocusEvent.isTemporary()

Class java.awt.event.HierarchyEvent sample code for java.awt.event.HierarchyEvent definition code for java.awt.event.HierarchyEvent extends AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent implements Serializable

Serialized Fields

changed

Component sample code for java.awt.Component definition code for java.awt.Component  changed

changedParent

Container sample code for java.awt.Container definition code for java.awt.Container  changedParent

changeFlags

long changeFlags

Class java.awt.event.InputEvent sample code for java.awt.event.InputEvent definition code for java.awt.event.InputEvent extends ComponentEvent sample code for java.awt.event.ComponentEvent definition code for java.awt.event.ComponentEvent implements Serializable

serialVersionUID: -2482525981698309786L

Serialized Fields

when

long when
The input event's Time stamp in UTC format. The time stamp indicates when the input event was created.

 
See Also:
InputEvent.getWhen() sample code for java.awt.event.InputEvent.getWhen() definition code for java.awt.event.InputEvent.getWhen()

modifiers

int modifiers
The state of the modifier mask at the time the input event was fired.

 
See Also:
InputEvent.getModifiers() sample code for java.awt.event.InputEvent.getModifiers() definition code for java.awt.event.InputEvent.getModifiers() , InputEvent.getModifiersEx() sample code for java.awt.event.InputEvent.getModifiersEx() definition code for java.awt.event.InputEvent.getModifiersEx() , KeyEvent sample code for java.awt.event.KeyEvent definition code for java.awt.event.KeyEvent , MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent

Class java.awt.event.InputMethodEvent sample code for java.awt.event.InputMethodEvent definition code for java.awt.event.InputMethodEvent extends AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent implements Serializable

serialVersionUID: 4727190874778922661L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException 
Initializes the when field if it is not present in the object input stream. In that case, the field will be initialized by invoking EventQueue.getMostRecentEventTime() sample code for java.awt.EventQueue.getMostRecentEventTime() definition code for java.awt.EventQueue.getMostRecentEventTime() .

Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
Serialized Fields

when

long when
The time stamp that indicates when the event was created.

 
Since:
1.4
See Also:
InputMethodEvent.getWhen() sample code for java.awt.event.InputMethodEvent.getWhen() definition code for java.awt.event.InputMethodEvent.getWhen()

Class java.awt.event.InvocationEvent sample code for java.awt.event.InvocationEvent definition code for java.awt.event.InvocationEvent extends AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent implements Serializable

serialVersionUID: 436056344909459450L

Serialized Fields

runnable

Runnable sample code for java.lang.Runnable definition code for java.lang.Runnable  runnable
The Runnable whose run() method will be called.


notifier

Object sample code for java.lang.Object definition code for java.lang.Object  notifier
The (potentially null) Object whose notifyAll() method will be called immediately after the Runnable.run() method returns.


catchExceptions

boolean catchExceptions
Set 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

Exception sample code for java.lang.Exception definition code for java.lang.Exception  exception
The (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

Throwable sample code for java.lang.Throwable definition code for java.lang.Throwable  throwable
The (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 when
The timestamp of when this event occurred.

 
See Also:
InvocationEvent.getWhen() sample code for java.awt.event.InvocationEvent.getWhen() definition code for java.awt.event.InvocationEvent.getWhen()

Class java.awt.event.ItemEvent sample code for java.awt.event.ItemEvent definition code for java.awt.event.ItemEvent extends AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent implements Serializable

serialVersionUID: -608708132447206933L

Serialized Fields

item

Object sample code for java.lang.Object definition code for java.lang.Object  item
The item whose selection state has changed.

 
See Also:
ItemEvent.getItem() sample code for java.awt.event.ItemEvent.getItem() definition code for java.awt.event.ItemEvent.getItem()

stateChange

int stateChange
stateChange indicates whether the item was selected or deselected.

 
See Also:
ItemEvent.getStateChange() sample code for java.awt.event.ItemEvent.getStateChange() definition code for java.awt.event.ItemEvent.getStateChange()

Class java.awt.event.KeyEvent sample code for java.awt.event.KeyEvent definition code for java.awt.event.KeyEvent extends InputEvent sample code for java.awt.event.InputEvent definition code for java.awt.event.InputEvent implements Serializable

serialVersionUID: -2352130953028126954L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException 
Sets new modifiers by the old ones. The key modifiers override overlaping mouse modifiers.

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
Serialized Fields

isProxyActive

boolean isProxyActive
Stores 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 keyCode
The 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.

 
See Also:
KeyEvent.getKeyCode() sample code for java.awt.event.KeyEvent.getKeyCode() definition code for java.awt.event.KeyEvent.getKeyCode() , KeyEvent.setKeyCode(int) sample code for java.awt.event.KeyEvent.setKeyCode(int) definition code for java.awt.event.KeyEvent.setKeyCode(int)

keyChar

char keyChar
keyChar is a valid unicode character that is fired by a key or a key combination on a keyboard.

 
See Also:
KeyEvent.getKeyChar() sample code for java.awt.event.KeyEvent.getKeyChar() definition code for java.awt.event.KeyEvent.getKeyChar() , KeyEvent.setKeyChar(char) sample code for java.awt.event.KeyEvent.setKeyChar(char) definition code for java.awt.event.KeyEvent.setKeyChar(char)

keyLocation

int keyLocation
The 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 are KEY_LOCATION_UNKNOWN, KEY_LOCATION_STANDARD, KEY_LOCATION_LEFT, KEY_LOCATION_RIGHT, and KEY_LOCATION_NUMPAD.

 
See Also:
KeyEvent.getKeyLocation() sample code for java.awt.event.KeyEvent.getKeyLocation() definition code for java.awt.event.KeyEvent.getKeyLocation()

Class java.awt.event.MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent extends InputEvent sample code for java.awt.event.InputEvent definition code for java.awt.event.InputEvent implements Serializable

serialVersionUID: -991214153494842848L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException 
Sets new modifiers by the old ones.

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
Serialized Fields

x

int x
The mouse event's x coordinate. The x value is relative to the component that fired the event.

 
See Also:
MouseEvent.getX() sample code for java.awt.event.MouseEvent.getX() definition code for java.awt.event.MouseEvent.getX()

y

int y
The mouse event's y coordinate. The y value is relative to the component that fired the event.

 
See Also:
MouseEvent.getY() sample code for java.awt.event.MouseEvent.getY() definition code for java.awt.event.MouseEvent.getY()

clickCount

int clickCount
Indicates the number of quick consecutive clicks of a mouse button. clickCount will be valid for only three mouse events :
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.

 
See Also:
MouseEvent.getClickCount(). sample code for java.awt.event.MouseEvent.getClickCount() definition code for java.awt.event.MouseEvent.getClickCount()

button

int button
Indicates which, if any, of the mouse buttons has changed state. The only legal values are the following constants: NOBUTTON, BUTTON1, BUTTON2 or BUTTON3.

 
See Also:
MouseEvent.getButton(). sample code for java.awt.event.MouseEvent.getButton() definition code for java.awt.event.MouseEvent.getButton()

popupTrigger

boolean popupTrigger
A property used to indicate whether a Popup Menu should appear with a certain gestures. If popupTrigger = false, no popup menu should appear. If it is true then a popup menu should appear.

 
See Also:
PopupMenu sample code for java.awt.PopupMenu definition code for java.awt.PopupMenu , MouseEvent.isPopupTrigger() sample code for java.awt.event.MouseEvent.isPopupTrigger() definition code for java.awt.event.MouseEvent.isPopupTrigger()

Class java.awt.event.MouseWheelEvent sample code for java.awt.event.MouseWheelEvent definition code for java.awt.event.MouseWheelEvent extends MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent implements Serializable

Serialized Fields

scrollType

int scrollType
Indicates what sort of scrolling should take place in response to this event, based on platform settings. Legal values are:

See Also:
MouseWheelEvent.getScrollType() sample code for java.awt.event.MouseWheelEvent.getScrollType() definition code for java.awt.event.MouseWheelEvent.getScrollType()

scrollAmount

int scrollAmount
Only valid for scrollType WHEEL_UNIT_SCROLL. Indicates number of units that should be scrolled per click of mouse wheel rotation, based on platform settings.

See Also:
MouseWheelEvent.getScrollAmount() sample code for java.awt.event.MouseWheelEvent.getScrollAmount() definition code for java.awt.event.MouseWheelEvent.getScrollAmount() , MouseWheelEvent.getScrollType() sample code for java.awt.event.MouseWheelEvent.getScrollType() definition code for java.awt.event.MouseWheelEvent.getScrollType()

wheelRotation

int wheelRotation
Indicates how far the mouse wheel was rotated.

See Also:
MouseWheelEvent.getWheelRotation() sample code for java.awt.event.MouseWheelEvent.getWheelRotation() definition code for java.awt.event.MouseWheelEvent.getWheelRotation()

Class java.awt.event.PaintEvent sample code for java.awt.event.PaintEvent definition code for java.awt.event.PaintEvent extends ComponentEvent sample code for java.awt.event.ComponentEvent definition code for java.awt.event.ComponentEvent implements Serializable

serialVersionUID: 1267492026433337593L

Serialized Fields

updateRect

Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle  updateRect
This is the rectangle that represents the area on the source component that requires a repaint. This rectangle should be non null.

 
See Also:
Rectangle sample code for java.awt.Rectangle definition code for java.awt.Rectangle , PaintEvent.setUpdateRect(Rectangle) sample code for java.awt.event.PaintEvent.setUpdateRect(java.awt.Rectangle) definition code for java.awt.event.PaintEvent.setUpdateRect(java.awt.Rectangle) , PaintEvent.getUpdateRect() sample code for java.awt.event.PaintEvent.getUpdateRect() definition code for java.awt.event.PaintEvent.getUpdateRect()

Class java.awt.event.TextEvent sample code for java.awt.event.TextEvent definition code for java.awt.event.TextEvent extends AWTEvent sample code for java.awt.AWTEvent definition code for java.awt.AWTEvent implements Serializable

serialVersionUID: 6269902291250941179L

Class java.awt.event.WindowEvent sample code for java.awt.event.WindowEvent definition code for java.awt.event.WindowEvent extends ComponentEvent sample code for java.awt.event.ComponentEvent definition code for java.awt.event.ComponentEvent implements Serializable

serialVersionUID: -1567959133147912127L

Serialized Fields

oldState

int oldState
TBS


newState

int newState

Package java.awt.font

Class java.awt.font.NumericShaper sample code for java.awt.font.NumericShaper definition code for java.awt.font.NumericShaper extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

Serialized Fields

key

int key
index of context for contextual shaping - values range from 0 to 18


mask

int mask
flag indicating whether to shape contextually (high bit) and which digit ranges to shape (bits 0-18)

Class java.awt.font.TextAttribute sample code for java.awt.font.TextAttribute definition code for java.awt.font.TextAttribute extends AttributedCharacterIterator.Attribute sample code for java.text.AttributedCharacterIterator.Attribute definition code for java.text.AttributedCharacterIterator.Attribute implements Serializable

serialVersionUID: 7744112784117861702L

Serialization Methods

readResolve

protected Object sample code for java.lang.Object definition code for java.lang.Object  readResolve()
                      throws InvalidObjectException sample code for java.io.InvalidObjectException definition code for java.io.InvalidObjectException 
Resolves instances being deserialized to the predefined constants.

Throws:
InvalidObjectException sample code for java.io.InvalidObjectException definition code for java.io.InvalidObjectException

Class java.awt.font.TransformAttribute sample code for java.awt.font.TransformAttribute definition code for java.awt.font.TransformAttribute extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: 3356247357827709530L

Serialization Methods

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                         IOException sample code for java.io.IOException definition code for java.io.IOException 
Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
Serialized Fields

transform

AffineTransform sample code for java.awt.geom.AffineTransform definition code for java.awt.geom.AffineTransform  transform
The AffineTransform for this TransformAttribute, or null if AffineTransform is the identity transform.


Package java.awt.geom

Class java.awt.geom.AffineTransform sample code for java.awt.geom.AffineTransform definition code for java.awt.geom.AffineTransform extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException 
Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                         IOException sample code for java.io.IOException definition code for java.io.IOException 
Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException
Serialized Fields

m00

double m00
The X coordinate scaling element of the 3x3 affine transformation matrix.

 

m10

double m10
The Y coordinate shearing element of the 3x3 affine transformation matrix.

 

m01

double m01
The X coordinate shearing element of the 3x3 affine transformation matrix.

 

m11

double m11
The Y coordinate scaling element of the 3x3 affine transformation matrix.

 

m02

double m02
The X coordinate of the translation element of the 3x3 affine transformation matrix.

 

m12

double m12
The Y coordinate of the translation element of the 3x3 affine transformation matrix.

 

Class java.awt.geom.IllegalPathStateException sample code for java.awt.geom.IllegalPathStateException definition code for java.awt.geom.IllegalPathStateException extends RuntimeException sample code for java.lang.RuntimeException definition code for java.lang.RuntimeException implements Serializable

Class java.awt.geom.NoninvertibleTransformException sample code for java.awt.geom.NoninvertibleTransformException definition code for java.awt.geom.NoninvertibleTransformException extends Exception sample code for java.lang.Exception definition code for java.lang.Exception implements Serializable


Package java.awt.image

Class java.awt.image.ImagingOpException sample code for java.awt.image.ImagingOpException definition code for java.awt.image.ImagingOpException extends RuntimeException sample code for java.lang.RuntimeException definition code for java.lang.RuntimeException implements Serializable

Class java.awt.image.RasterFormatException sample code for java.awt.image.RasterFormatException definition code for java.awt.image.RasterFormatException extends RuntimeException sample code for java.lang.RuntimeException definition code for java.lang.RuntimeException implements Serializable


Package java.awt.image.renderable

Class java.awt.image.renderable.ParameterBlock sample code for java.awt.image.renderable.ParameterBlock definition code for java.awt.image.renderable.ParameterBlock extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

Serialized Fields

sources

Vector sample code for java.util.Vector definition code for java.util.Vector <E> sources
A Vector of sources, stored as arbitrary Objects.


parameters

Vector sample code for java.util.Vector definition code for java.util.Vector <E> parameters
A Vector of non-source parameters, stored as arbitrary Objects.


Package java.awt.print

Class java.awt.print.PrinterAbortException sample code for java.awt.print.PrinterAbortException definition code for java.awt.print.PrinterAbortException extends PrinterException sample code for java.awt.print.PrinterException definition code for java.awt.print.PrinterException implements Serializable

Class java.awt.print.PrinterException sample code for java.awt.print.PrinterException definition code for java.awt.print.PrinterException extends Exception sample code for java.lang.Exception definition code for java.lang.Exception implements Serializable

Class java.awt.print.PrinterIOException sample code for java.awt.print.PrinterIOException definition code for java.awt.print.PrinterIOException extends PrinterException sample code for java.awt.print.PrinterException definition code for java.awt.print.PrinterException implements Serializable

serialVersionUID: 5850870712125932846L

Serialized Fields

mException

IOException sample code for java.io.IOException definition code for java.io.IOException  mException
The IO error that terminated the print job.

 

Package java.beans

Class java.beans.IndexedPropertyChangeEvent sample code for java.beans.IndexedPropertyChangeEvent definition code for java.beans.IndexedPropertyChangeEvent extends PropertyChangeEvent sample code for java.beans.PropertyChangeEvent definition code for java.beans.PropertyChangeEvent implements Serializable

Serialized Fields

index

int index

Class java.beans.IntrospectionException sample code for java.beans.IntrospectionException definition code for java.beans.IntrospectionException extends Exception sample code for java.lang.Exception definition code for java.lang.Exception implements Serializable

Class java.beans.PropertyChangeEvent sample code for java.beans.PropertyChangeEvent definition code for java.beans.PropertyChangeEvent extends EventObject sample code for java.util.EventObject definition code for java.util.EventObject implements Serializable

Serialized Fields

propertyName

String sample code for java.lang.String definition code for java.lang.String  propertyName
name of the property that changed. May be null, if not known.

 

newValue

Object sample code for java.lang.Object definition code for java.lang.Object  newValue
New value for property. May be null if not known.

 

oldValue

Object sample code for java.lang.Object definition code for java.lang.Object  oldValue
Previous value for property. May be null if not known.

 

propagationId

Object sample code for java.lang.Object definition code for java.lang.Object  propagationId
Propagation ID. May be null.

 
See Also:
#getPropagationId.

Class java.beans.PropertyChangeSupport sample code for java.beans.PropertyChangeSupport definition code for java.beans.PropertyChangeSupport extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: 6401253773779951803L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException 
Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Serial Data:
Null terminated list of PropertyChangeListeners.

At serialization time we skip non-serializable listeners and only serialize the serializable listeners.

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
Serialized Fields

children

Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable <K,V> children
Hashtable for managing listeners for specific properties. Maps property names to PropertyChangeSupport objects.

 
Since:
1.2

source

Object sample code for java.lang.Object definition code for java.lang.Object  source
The object to be provided as the "source" for any generated events.

 

propertyChangeSupportSerializedDataVersion

int propertyChangeSupportSerializedDataVersion
Internal version number

 
Since:

Class java.beans.PropertyVetoException sample code for java.beans.PropertyVetoException definition code for java.beans.PropertyVetoException extends Exception sample code for java.lang.Exception definition code for java.lang.Exception implements Serializable

Serialized Fields

evt

PropertyChangeEvent sample code for java.beans.PropertyChangeEvent definition code for java.beans.PropertyChangeEvent  evt
A PropertyChangeEvent describing the vetoed change.

 

Class java.beans.VetoableChangeSupport sample code for java.beans.VetoableChangeSupport definition code for java.beans.VetoableChangeSupport extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -5090210921595982017L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException ,
                        IOException sample code for java.io.IOException definition code for java.io.IOException 
Throws:
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
IOException sample code for java.io.IOException definition code for java.io.IOException

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Serial Data:
Null terminated list of VetoableChangeListeners.

At serialization time we skip non-serializable listeners and only serialize the serializable listeners.

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
Serialized Fields

children

Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable <K,V> children
Hashtable for managing listeners for specific properties. Maps property names to VetoableChangeSupport objects.

 
Since:
1.2

source

Object sample code for java.lang.Object definition code for java.lang.Object  source
The object to be provided as the "source" for any generated events.

 

vetoableChangeSupportSerializedDataVersion

int vetoableChangeSupportSerializedDataVersion
Internal version number

 

Package java.beans.beancontext

Class java.beans.beancontext.BeanContextChildSupport sample code for java.beans.beancontext.BeanContextChildSupport definition code for java.beans.beancontext.BeanContextChildSupport extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: 6328947014421475877L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  ois)
                 throws IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException 
Restore a persistent object, must wait for subsequent setBeanContext() to fully restore any resources obtained from the new nesting BeanContext

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  oos)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Write the persistence state of the object.

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
Serialized Fields

beanContextChildPeer

BeanContextChild sample code for java.beans.beancontext.BeanContextChild definition code for java.beans.beancontext.BeanContextChild  beanContextChildPeer
The BeanContext in which this BeanContextChild is nested.


pcSupport

PropertyChangeSupport sample code for java.beans.PropertyChangeSupport definition code for java.beans.PropertyChangeSupport  pcSupport
The PropertyChangeSupport associated with this BeanContextChildSupport.


vcSupport

VetoableChangeSupport sample code for java.beans.VetoableChangeSupport definition code for java.beans.VetoableChangeSupport  vcSupport
The VetoableChangeSupport associated with this BeanContextChildSupport.

Class java.beans.beancontext.BeanContextEvent sample code for java.beans.beancontext.BeanContextEvent definition code for java.beans.beancontext.BeanContextEvent extends EventObject sample code for java.util.EventObject definition code for java.util.EventObject implements Serializable

Serialized Fields

propagatedFrom

BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext  propagatedFrom
The BeanContext from which this event was propagated

Class java.beans.beancontext.BeanContextMembershipEvent sample code for java.beans.beancontext.BeanContextMembershipEvent definition code for java.beans.beancontext.BeanContextMembershipEvent extends BeanContextEvent sample code for java.beans.beancontext.BeanContextEvent definition code for java.beans.beancontext.BeanContextEvent implements Serializable

Serialized Fields

children

Collection sample code for java.util.Collection definition code for java.util.Collection <E> children
The list of children affected by this event notification.

Class java.beans.beancontext.BeanContextServiceAvailableEvent sample code for java.beans.beancontext.BeanContextServiceAvailableEvent definition code for java.beans.beancontext.BeanContextServiceAvailableEvent extends BeanContextEvent sample code for java.beans.beancontext.BeanContextEvent definition code for java.beans.beancontext.BeanContextEvent implements Serializable

Serialized Fields

serviceClass

Class sample code for java.lang.Class definition code for java.lang.Class <T> serviceClass
A Class reference to the newly available service

Class java.beans.beancontext.BeanContextServiceRevokedEvent sample code for java.beans.beancontext.BeanContextServiceRevokedEvent definition code for java.beans.beancontext.BeanContextServiceRevokedEvent extends BeanContextEvent sample code for java.beans.beancontext.BeanContextEvent definition code for java.beans.beancontext.BeanContextEvent implements Serializable

Serialized Fields

serviceClass

Class sample code for java.lang.Class definition code for java.lang.Class <T> serviceClass
A Class reference to the service that is being revoked.


invalidateRefs

boolean invalidateRefs

Class java.beans.beancontext.BeanContextServicesSupport sample code for java.beans.beancontext.BeanContextServicesSupport definition code for java.beans.beancontext.BeanContextServicesSupport extends BeanContextSupport sample code for java.beans.beancontext.BeanContextSupport definition code for java.beans.beancontext.BeanContextSupport implements Serializable

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  ois)
                 throws IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException 
deserialize the instance

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  oos)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
serialize the instance

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException

Class java.beans.beancontext.BeanContextServicesSupport.BCSSChild sample code for java.beans.beancontext.BeanContextServicesSupport.BCSSChild definition code for java.beans.beancontext.BeanContextServicesSupport.BCSSChild extends BeanContextSupport.BCSChild sample code for java.beans.beancontext.BeanContextSupport.BCSChild definition code for java.beans.beancontext.BeanContextSupport.BCSChild implements Serializable

serialVersionUID: -3263851306889194873L

Class java.beans.beancontext.BeanContextServicesSupport.BCSSServiceProvider sample code for java.beans.beancontext.BeanContextServicesSupport.BCSSServiceProvider definition code for java.beans.beancontext.BeanContextServicesSupport.BCSSServiceProvider extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

Serialized Fields

serviceProvider

BeanContextServiceProvider sample code for java.beans.beancontext.BeanContextServiceProvider definition code for java.beans.beancontext.BeanContextServiceProvider  serviceProvider

Class java.beans.beancontext.BeanContextSupport sample code for java.beans.beancontext.BeanContextSupport definition code for java.beans.beancontext.BeanContextSupport extends BeanContextChildSupport sample code for java.beans.beancontext.BeanContextChildSupport definition code for java.beans.beancontext.BeanContextChildSupport implements Serializable

serialVersionUID: -4879613978649577204L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  ois)
                 throws IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException 
deserialize contents ... if this instance has a distinct peer the children are *not* serialized here, the peer's readObject() must call readChildren() after deserializing this instance.

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  oos)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException ,
                         ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException 
Serialize the BeanContextSupport, if this instance has a distinct peer (that is this object is acting as a delegate for another) then the children of this instance are not serialized here due to a 'chicken and egg' problem that occurs on deserialization of the children at the same time as this instance. Therefore in situations where there is a distinct peer to this instance it should always call writeObject() followed by writeChildren() and readObject() followed by readChildren().

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException
Serialized Fields

serializable

int serializable

locale

Locale sample code for java.util.Locale definition code for java.util.Locale  locale
The current locale of this BeanContext.


okToUseGui

boolean okToUseGui
A boolean indicating if this instance may now render a GUI.


designTime

boolean designTime
A boolean indicating whether or not this object is currently in design time mode.

Class java.beans.beancontext.BeanContextSupport.BCSChild sample code for java.beans.beancontext.BeanContextSupport.BCSChild definition code for java.beans.beancontext.BeanContextSupport.BCSChild extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -5815286101609939109L

Serialized Fields

child

Object sample code for java.lang.Object definition code for java.lang.Object  child

proxyPeer

Object sample code for java.lang.Object definition code for java.lang.Object  proxyPeer

Package java.io

Class java.io.CharConversionException sample code for java.io.CharConversionException definition code for java.io.CharConversionException extends IOException sample code for java.io.IOException definition code for java.io.IOException implements Serializable

Class java.io.EOFException sample code for java.io.EOFException definition code for java.io.EOFException extends IOException sample code for java.io.IOException definition code for java.io.IOException implements Serializable

Class java.io.File sample code for java.io.File definition code for java.io.File extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: 301077366599181567L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  s)
                 throws IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException 
readObject is called to restore this filename. The original separator character is read. If it is different than the separator character on this system, then the old separator is replaced by the local separator.

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  s)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
WriteObject is called to save this filename. The separator character is saved also so it can be replaced in case the path is reconstituted on a different host type.

Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
Serialized Fields

path

String sample code for java.lang.String definition code for java.lang.String  path
This abstract pathname's normalized pathname string. A normalized pathname string uses the default name-separator character and does not contain any duplicate or redundant separators.

 

Class java.io.FileNotFoundException sample code for java.io.FileNotFoundException definition code for java.io.FileNotFoundException extends IOException sample code for java.io.IOException definition code for java.io.IOException implements Serializable

Class java.io.FilePermissionCollection extends PermissionCollection sample code for java.security.PermissionCollection definition code for java.security.PermissionCollection implements Serializable

serialVersionUID: 2202956749081564585L

Serialization Methods

readObject

private void readObject(ObjectInputStream sample code for java.io.ObjectInputStream definition code for java.io.ObjectInputStream  in)
                 throws IOException sample code for java.io.IOException definition code for java.io.IOException ,
                        ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException 
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
ClassNotFoundException sample code for java.lang.ClassNotFoundException definition code for java.lang.ClassNotFoundException

writeObject

private void writeObject(ObjectOutputStream sample code for java.io.ObjectOutputStream definition code for java.io.ObjectOutputStream  out)
                  throws IOException sample code for java.io.IOException definition code for java.io.IOException 
Serial Data:
"permissions" field (a Vector containing the FilePermissions).
Throws:
IOException sample code for java.io.IOException definition code for java.io.IOException
Serialized Fields

permissions

Vector sample code for java.util.Vector definition code for java.util.Vector <E> permissions
A list of FilePermission objects.

Class java.io.InterruptedIOException sample code for java.io.InterruptedIOException definition code for java.io.InterruptedIOException extends IOException sample code for java.io.IOException definition code for java.io.IOException implements Serializable

Serialized Fields

bytesTransferred

int bytesTransferred
Reports how many bytes had been transferred as part of the I/O operation before it was interrupted.

 

Class java.io.InvalidClassException sample code for java.io.InvalidClassException definition code for java.io.InvalidClassException extends ObjectStreamException sample code for java.io.ObjectStreamException definition code for java.io.ObjectStreamException implements Serializable

Serialized Fields

classname

String sample code for java.lang.String definition code for java.lang.String  classname
Name of the invalid class.

Name of the invalid class.

Class java.io.InvalidObjectException sample code for java.io.InvalidObjectException definition code for java.io.InvalidObjectException extends ObjectStreamException sample code for java.io.ObjectStreamException definition code for java.io.ObjectStreamException implements Serializable

Class java.io.IOException sample code for java.io.IOException definition code for java.io.IOException extends Exception sample code for java.lang.Exception definition code for java.lang.Exception implements Serializable

Class java.io.NotActiveException sample code for java.io.NotActiveException definition code for java.io.NotActiveException extends ObjectStreamException sample code for java.io.ObjectStreamException definition code for java.io.ObjectStreamException implements Serializable

Class java.io.NotSerializableException sample code for java.io.NotSerializableException definition code for java.io.NotSerializableException extends ObjectStreamException sample code for java.io.ObjectStreamException definition code for java.io.ObjectStreamException implements Serializable

Class java.io.ObjectStreamClass sample code for java.io.ObjectStreamClass definition code for java.io.ObjectStreamClass extends Object sample code for java.lang.Object definition code for java.lang.Object implements Serializable

serialVersionUID: -6120832682080437368L

Serialized Fields

Class java.io.ObjectStreamException sample code for java.io.ObjectStreamException definition code for java.io.ObjectStreamException extends IOException sample code for java.io.IOException definition code for java.io.IOException implements Serializable

Class java.io.OptionalDataException sample code for java.io.OptionalDataException definition code for java.io.OptionalDataException extends ObjectStreamException sample code for java.io.ObjectStreamException definition code for java.io.ObjectStreamException implements Serializable

Serialized Fields

length

int length
The number of bytes of primitive data available to be read in the current buffer.

 

eof

boolean eof
True if there is no more data in the buffered part of the stream.

 

Class java.io.SerializablePermission sample code for java.io.SerializablePermission definition code for java.io.SerializablePermission extends BasicPermission sample code for java.security.BasicPermission definition code for java.security.BasicPermission implements Serializable

Serialized Fields

actions

String sample code for java.lang.String definition code for java.lang.String  actions
 

Class java.io.StreamCorruptedException sample code for java.io.StreamCorruptedException definition code for java.io.StreamCorruptedException extends ObjectStreamException sample code for java.io.ObjectStreamException definition code for java.io.ObjectStreamException implements Serializable

Class java.io.SyncFailedException sample code for java.io.SyncFailedException definition code for java.io.SyncFailedException extends IOException sample code for java.io.IOException definition code for java.io.IOException implements Serializable

Class java.io.UnsupportedEncodingException sample code for java.io.UnsupportedEncodingException definition code for java.io.UnsupportedEncodingException extends IOException sample code for java.io.IOException definition code for java.io.IOException implements Serializable

Class java.io.UTFDataFormatException sample code for java.io.UTFDataFormatException definition code for java.io.UTFDataFormatException extends IOException sample code for java.io.IOException definition code for java.io.IOException implements Serializable

Class java.io.WriteAbortedException sample code for java.io.WriteAbortedException definition code for java.io.WriteAbortedException extends ObjectStreamException sample code for java.io.ObjectStreamException definition code for java.io.ObjectStreamException implements Serializable

serialVersionUID: -3326426625597282442L

Serialized Fields

detail

Exception sample code for java.lang.Exception definition code for java.lang.Exception  detail
Exception that was caught while writing the ObjectStream.

This field predates the general-purpose exception chaining facility. The Throwable.getCause() sample code for java.lang.Throwable.getCause() definition code for java.lang.Throwable.getCause() method is now the preferred means of obtaining this information.

 

Package java.lang

Class java.lang.AbstractMethodError sample code for java.lang.AbstractMethodError definition code for java.lang.AbstractMethodError extends IncompatibleClassChangeError sample code for java.lang.IncompatibleClassChangeError definition code for java.lang.IncompatibleClassChangeError