|
-
Oct 16th, 2001, 06:00 PM
#1
Cut, Copy, Paste...
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?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Oct 16th, 2001, 06:27 PM
#2
Member
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/ ?
-
Oct 16th, 2001, 06:47 PM
#3
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
-
Oct 16th, 2001, 06:54 PM
#4
Member
That was a link to their forums, and their forums are (almost as) cool (as VBF).
-
Oct 16th, 2001, 07:56 PM
#5
They have about 25 forums that mixed me up anyway I like vbforums because it's the best
-
Oct 16th, 2001, 07:59 PM
#6
Member
I always use the newbie's forum there.
-
Oct 16th, 2001, 08:25 PM
#7
4356 posts and i bet than 4100 = help and only 200 was questions
-
Oct 17th, 2001, 10:00 AM
#8
Dazed Member
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.
-
Oct 17th, 2001, 10:11 AM
#9
Dazed Member
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() ;}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|