Results 1 to 2 of 2
  1. #1
    Mr tuition is offline Member
    Join Date
    Dec 2007
    Rep Power

    Default 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?

  2. #2
    staykovmarin is offline Senior Member
    Join Date
    Nov 2007
    Newport, WA
    Rep Power


    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

  1. Undo shortcut malfunctioning.
    By Eranga in forum NetBeans
    Replies: 0
    Last Post: 03-31-2008, 05:12 AM
  2. Replies: 0
    Last Post: 02-06-2008, 03:55 PM
  3. undo java
    By new214 in forum New To Java
    Replies: 1
    Last Post: 11-20-2007, 09:16 AM
  4. how to issue the command of Ctrl-C (copy) in Java
    By bilal_ali_java in forum Advanced Java
    Replies: 0
    Last Post: 07-18-2007, 03:14 PM
  5. How to implement Cut and Paste
    By Jamie in forum AWT / Swing
    Replies: 2
    Last Post: 05-31-2007, 06:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts