Results for ScrollBarPeer in Java

Interface ScrollBarPeer in Java

January 10, 2019
ScrollBarPeer in Java
ScrollBarPeer in Java

ScrollBarPeer in Java:

The ScrollBarPeer interface specifies the methods that all implementation of Abstract Window Toolkit Scroll bar must define.

The structure of the ScrollBarPeer interface is given as:



public interface java.awt.peer.ScrollBarPeer extends
                 java.awt.peer.ComponentPeer{
//method
public abstract void setLineIncrement(int l);
//sets the line increment of the scroll bar.The line increment
//is the value that is added to or subtracted from the value
//of the scroll bar when the user hits the line down or line up
// the gadget.
public abstract void setPageIncrement(int l);
//sets the page increment of the scroll bar.The page increment is the 
//value that is added to or subtracted from the value of 
//the scrollbar when the user hits the page down or page up the gadget.
public abstract void setValue(int value);
//sets the value of the scrollbar to the specified value.
public abstract void setValue(int value,int visible,int min,int max);
//sets several parameters of the scroll bar simultaneously.
}
 

Interface ScrollBarPeer in Java Interface ScrollBarPeer in Java Reviewed by Animesh Chatterjee on January 10, 2019 Rating: 5
Powered by Blogger.