All About Class TextComponent in AWT in Java



TextComponent is the super class of any component that allows the editing of some text.Read here for TextArea and read here for TextField.
The class structure of TextComponent class is given below:

public class java.awt.TextComponent extends java.awt.Component{
//methods
public String getSelectedText();
public int getSelectionEnd();
public int getSelectionStart();
public String getText();
public boolean isEditable();
protected String paramString();
public void removeNotify();
public void select(int selectionStart,int selectionEnd);
public void selectAll();
public void setEditable(boolean t);
public void setText(String str);
}
 
All About Class TextComponent in AWT in Java All About Class TextComponent in AWT in Java Reviewed by Animesh Chatterjee on December 04, 2018 Rating: 5

No comments:

Powered by Blogger.