public class Dimension
extends java.lang.Object
Component class and the LayoutManager interface return a Dimension
object.
Normally, the values of width and height are non-negative integers. The
constructors that allow you to create a dimension do not prevent you
from setting a negative value for these properties. If the value of
width or height is negative, the behavior of some methods defined by
other objects is undefined.
CSS example:
dimension {
class : "java.awt.Dimension(width,height)";
height : "2";
width : "2";
}
public java.lang.String class
Dimension.
class : "java.awt.Dimension(width,height)";public int height
height : "2";public int width
width : "2";© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.