关于JTextArea
想在JTextArea类的对象中实现在当前光标处粘贴内容应如何做?我用append()方法,只能粘贴在尾部

int |
getCaretPosition() Returns the position of the text insertion caret for the text component. |
void |
insert(String str, int pos) Inserts the specified text at the specified position. |
谢谢各位大侠,让我试试!
我懂了
要这样用 jTa.insert(text,jTa.getCaretPosition());