JTextComponent: select(int selectionStart, int selectionEnd) : JTextComponent « javax.swing « Java by API
- Java by API
- javax.swing
- JTextComponent
JTextComponent: select(int selectionStart, int selectionEnd)
import javax.swing.JTextArea;
import javax.swing.text.JTextComponent;
public class Main {
public static void main(String[] argv) {
JTextComponent c = new JTextArea();
c.select(10, 20);
}
}
Related examples in the same category