All About INTERFACE ListPeer in AWT in Java


The scrolling ListPeer Interface specifies the methods that all implementations of Abstract Window Toolkit must define while working with lists.
The structure of interface ListPeer is given as:

public interface java.awt.peer.ListPeer extends java.awt.peer.ComponentPeer{
//Methods
public abstract void addItem(String item,int index);
public abstract void clear();
public abstract void delItems(int start,int end);
public abstract void delselect(int index);
public abstract void makeVisible(int index);
public abstract void select(int index);
public abstract void setMultipleselections(boolean v);
public abstract int[] getSelectedIndexes();
public abstract Dimension minimumSize(int v);
public abstract Dimension preferredSize(int v);
}
 

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

No comments:

Powered by Blogger.