List of usage examples for javax.swing JTextArea replaceRange
public void replaceRange(String str, int start, int end)
From source file:Main.java
public static void main(String[] argv) { JTextArea ta = new JTextArea("Initial Text"); int start = 0; int end = 3;/*ww w. j av a2 s .c o m*/ ta.replaceRange("new text", start, end); }
From source file:Main.java
public static void main(String[] argv) { JTextArea ta = new JTextArea("Initial Text"); int start = 0; int end = 5;/*from www .j a v a 2s . c om*/ ta.replaceRange(null, start, end); }