Results 1 to 2 of 2
- 12-08-2007, 04:24 PM #1
Member
- Join Date
- Dec 2007
- Posts
- 12
- Rep Power
- 0
java copy paste cut and undo functions
anyone know of a quick method class or example for right mouse click:
copy paste cut and undo functions?
- 12-09-2007, 12:02 AM #2
Senior Member
- Join Date
- Nov 2007
- Location
- Newport, WA
- Posts
- 141
- Rep Power
- 0
How to Write a Mouse Listener (The Java™ Tutorials > Creating a GUI with JFC/Swing > Writing Event Listeners)
Copy and Paste is as simple as a acessing the clipboard: Java Tip 61: Cut, copy, and paste in Java - Java World
Undo depends on the kind of action that you want to undo. Do you mean the text that was entered? If you want to undo letter by letter, you can implement a Que system that records every letter entered in a JTextField. Then when the user undoes, you take the last letter add it and remove it from the JTextField (or word, depending on your requirement).
Similar Threads
-
Undo shortcut malfunctioning.
By Eranga in forum NetBeansReplies: 0Last Post: 03-31-2008, 05:12 AM -
Copy n' Paste in JEditorPane wraps text in new css..?
By Sam in forum AWT / SwingReplies: 0Last Post: 02-06-2008, 03:55 PM -
undo java
By new214 in forum New To JavaReplies: 1Last Post: 11-20-2007, 09:16 AM -
how to issue the command of Ctrl-C (copy) in Java
By bilal_ali_java in forum Advanced JavaReplies: 0Last Post: 07-18-2007, 03:14 PM -
How to implement Cut and Paste
By Jamie in forum AWT / SwingReplies: 2Last Post: 05-31-2007, 06:15 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks