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