Set the end of the selection; ignored if new end is > start : TextArea « Swing JFC « Java
- Java
- Swing JFC
- TextArea
Set the end of the selection; ignored if new end is > start
import javax.swing.JTextArea;
import javax.swing.text.JTextComponent;
public class Main {
public static void main(String[] argv) {
JTextComponent c = new JTextArea();
c.setSelectionEnd(20);
}
}
Related examples in the same category