Package java.awt |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
public class java.awt.Insets extends java.lang.Object implements java.lang.Cloneable { // Fields public int bottom; public int left; public int right; public int top; // Constructors public Insets(int top, int left, int bottom, int right); // Methods public Object clone(); public String toString(); }
The Insets object is a representation of the borders of a container. It specifies the space that a container must leave at each of its edges. The space can either be a border, blank space, or a title.
See Also: | LayoutManager Container . |
public int bottomThe inset from the bottom.
public int leftThe inset from the left.
public int rightThe inset from the right.
public int topThe inset from the top.
public Insets(int top, int left, int bottom, int right)Creates and initializes a new Inset with the specified top, left, bottom, and right insets.
Parameter Description top the inset from the top left the inset from the left bottom the inset from the bottom right the inset from the right
public Object clone()Return Value:
Returns a copy of this inset.
Overrides:
clone in class Object .
public String toString()Return Value:
Returns a string representation of this inset.
Overrides:
toString in class Object .