APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing.plaf

public Class DimensionUIResource

extends Dimension
implements UIResource
Class Inheritance
All Implemented Interfaces
javax.swing.plaf.UIResource
Annotations
@SuppressWarnings:serial
Imports
java.awt.Dimension, javax.swing.plaf.UIResource

A subclass of Dimension that implements UIResource. UI classes that use Dimension values for default properties should use this class.

Warning

Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans has been added to the java.beans package. Please see java.beans.XMLEncoder.

Author
Amy Fowler
See Also
javax.swing.plaf.UIResource

Field Summary

Inherited from java.awt.Dimension:
heightwidth

Constructor Summary

AccessConstructor and Description
public
DimensionUIResource(int
the width
width
,
int
the height
height
)

Constructs a DimensionUIResource.

Method Summary

Inherited from java.awt.Dimension:
equalsgetHeightgetSizegetWidthhashCodesetSizesetSizesetSizetoString

Constructor Detail

DimensionUIResourceback to summary
public DimensionUIResource(int width, int height)

Constructs a DimensionUIResource.

Parameters
width:int

the width

height:int

the height