I want to paste Stringin JTextField. Sort of -
String
JTextField
myTextField.insert(text, position);
How can I do that? Is there an easy way to do this?
You can do it -
jTextField.setText("This swing."); jTextField.getDocument().insertString(5, "is", null);
And it jTextFieldwill show -
jTextField
This is a swing.