All About Class TextComponent in AWT in Java

0
129
Spread the love
  • 24
  • 34
  • 28
  • 35
  •  
  •  
  •  
  • 12
  •  
  •  
    133
    Shares

Class TextComponent in AWT in Java
Class TextComponent in AWT in Java

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);
}
 
Don't miss out!
Subscribe To Newsletter

Receive top technical news, lesson ideas, travel tips and more!

Invalid email address
Give it a try. You can unsubscribe at any time.

Spread the love
  • 24
  • 34
  • 28
  • 35
  •  
  •  
  •  
  • 12
  •  
  •  
    133
    Shares

LEAVE A REPLY

Please enter your comment!
Please enter your name here