java.awt.Insets (JDK 1.0)
This class holds four values that represent the top, left, bottom, and right margins, in pixels, of a Container or other Component. Objects of this type may be specified in a GridBagConstraints layout object, and are returned by Container.insets(), which queries the margins of a container.
public classInsetsextends Object implements Cloneable, Serializable { //Public ConstructorpublicInsets(inttop, intleft, intbottom, intright); //Public Instance Variablespublic intbottom; public intleft; public intright; public inttop; //Public Instance Methodspublic Objectclone(); //Overrides Object1.1 public booleanequals(Objectobj); //Overrides Objectpublic StringtoString(); //Overrides Object}
Returned By:
Container.getInsets(), Container.insets(), ContainerPeer.getInsets(), ContainerPeer.insets()
Type Of:
GridBagConstraints.insets