I did a search for this and found a dead link, so I'll ask again.
How do I incorporate cut/copy/paste code into a JTextArea/JTextField?
:)
Printable View
I did a search for this and found a dead link, so I'll ask again.
How do I incorporate cut/copy/paste code into a JTextArea/JTextField?
:)
Without implementing native code I don't think you can use a global clipboard (JDK 1.4 includes this functionality I think but it is still in beta). :(
Have you tried http://forums.java.sun.com/ ?
java sun website help is horrible. MSDN is better than Sun help that one advantage than Microsoft have. I cant find any help at Sun webpage :(
That was a link to their forums, and their forums are (almost as) cool (as VBF). :)
They have about 25 forums that mixed me up :confused: anyway I like vbforums because it's the best :)
I always use the newbie's forum there. :D
4356 posts and i bet than 4100 = help and only 200 was questions ;)
Actually the Sun forumns are quite good. I like the fact that
each forumn is specialized, plus you get a quick response.
Also the "Duke Dollar" system works out quite nicely becuase the
people who answer the question that was asked the best get
the money. Here you get a post regardless of what you post of how helpfull you answer actually was.
This would be an example. public void copy(), public void cut(), public void paste(); are defined in the JTextComponent class;
Code:JTextArea ta = new JtextArea();
public void cutText() {ta.cut() ;}
public void copyText() {ta.copy() ;}
public void pasteText() {ta.paste() ;}