The Insets class provides a way to encapsulate the layout margins of the four different sides of a Container.
public class java.awt.Insets
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable {
// Variables
public int bottom;
public int left;
public int right;
public int top;
// Constructors
public Insets (int top, int left, int bottom, int right);
// Instance Methods
public Object clone();
public boolean equals (Object obj);
public String toString();
}
The border width for the bottom of a Container.
The border width for the left side of a Container.
The border width for the right side of a Container.
The border width for the top of a Container.
The border width for the top of a Container.
The border width for the left side of a Container.
The border width for the bottom of a Container.
The border width for the right side of a Container.
Constructs an Insets object with the appropriate border settings.
Clone of original object.
Object.clone()
Creates a copy of the original instance of an object.

The object to be tested.
true if the objects are equal; false otherwise.
Object.equals(Object)
Tests two Insets objects for equality.
A string representation of the Insets object.
Object.toString()
Cloneable, Container, Object, Serializable, String