All About Class Insets in AWT in Java

0
18
Spread the love
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share


The Insets object is representation of the border of a container.It specifies the space that a container must leave at each of it’s edge.The space can either be a border,blank space or a title.


public class java.awt.Insets extends java.lang.Object implements java.lang.Cloneable{
//member elements
public int bottom;//Insets from the bottom
public int left;//Insets from the left
public int right;//Insets from the right
public int top;//Insets from the top
//constructor
public Insets(int top,int left,int bottom,int right);
//creates and initializes a new Insets with the specified top,left,bottom and right insets.
//methods
public Object clone();//returns a copy of this insets
public String toString();//Returns the string representation of this insets.
}
Don't miss out!
Subscribe To Newsletter

Receive top technical news, lesson ideas, travel tips and more!

Invalid email address
Give it a try. You can unsubscribe at any time.

Spread the love
  • 1
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
    1
    Share

LEAVE A REPLY

Please enter your comment!
Please enter your name here