Packages This Package Prev Next Index
public class java.awt.Dimension extends java.lang.Object (I-§1.12) { // Fields public int height; §1.13.1 public int width; §1.13.2 // Constructors public Dimension(); §1.13.3 public Dimension(Dimension d); §1.13.4 public Dimension(int width, int height); §1.13.5 // Methods public String toString(); §1.13.6 }A class that encapsulates the width and height of a component in a single object.
public int height
public int width
public Dimension()
public Dimension(Dimension d)
d
-
the specified dimension for the width and height values
public Dimension(int width, int height)
width
-
the width
height
-
the height
public String toString()
Packages This Package Prev Next IndexJava API Document (HTML generated by dkramer on April 22, 1996)