All About INTERFACE ContainerPeer in AWT in Java


ContainerPeer in AWT in Java
ContainerPeer in AWT in Java

ContainerPeer in AWT in Java:

The ContainerPeer Interface specifies the methods that all implementations of Abstract Window Toolkit must define while working with Container.

The structure of interface ContainerPeer is given as:


public interface java.awt.peer.ContainerPeer extends java.awt.peer.ComponentPeer{
//Methods
public abstract Insets insets();
//determines insets of the container,which indicates the size of the border of the container.
//A frame, for example has a top inset that corresponds to the height of the frame's title bar.
public abstract void beginValidate();
public abstract void endValidate();
public abstract Insets getInsets();

}
 

All About INTERFACE ContainerPeer in AWT in Java All About INTERFACE ContainerPeer in AWT in Java Reviewed by Animesh Chatterjee on November 01, 2018 Rating: 5

No comments:

Powered by Blogger.