Results for Interface TextAreaPeer

Interface TextAreaPeer in java

January 10, 2019
TextAreaPeer in java
TextAreaPeer in java

Interface TextAreaPeer in java:

The TextAreaPeer interface specifies the methods that all implementation of Abstract Window Toolkit TextArea must define.
The structure of the TextAreaPeer interface is given as:

public interface java.awt.peer.TextAreaPeer extends
                 java.awt.peer.TextComponentPeer{
//method
public abstract void insertText(String txt,int position);
//inserts the specified text at the specified position.
public abstract Dimension minimumSize(int rows,int cols);
//returns the minimum dimension needed for the text area.
public abstract Dimension preferredSize(int rows,int cols);
//returns the preferred dimension needed for the text area.
public abstract void replaceText(String txt,inst start,int end);
//replaces the text from the start(inclusive) index to the end
//(exclusive) index with the new text specified.
}
 

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