JTextArea: insert(String str, int pos) : JTextArea « javax.swing « Java by API
- Java by API
- javax.swing
- JTextArea
JTextArea: insert(String str, int pos)
import javax.swing.JTextArea;
public class Main {
public static void main(String[] argv) {
JTextArea ta = new JTextArea("Initial Text");
int pos = 5;
ta.insert("some text", pos);
}
}
Related examples in the same category