• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to do copy/paste using swing

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have created a menu with file edit....
in edit i have option of cut copy and paste
i want to cut from one textbox and paste in second textbox using the menu
hou to do it using swing.
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is an example:

--------------------------------------------------------------------------------
NOTE:
Java does not currently support pasting objects like images from external applications. You could copy an ImageIcon and treat it as a javaSerializedObjectMimeType. However, it would then only be pasteable into another Java program, or a program that understands Java's serialization mechanism, which will be described in the "Object Persistence and Serialization" section of Chapter 19.

From:
http://developer.java.sun.com/developer/Books/MasteringJava/Ch16/index.html
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic