Friday, May 21, 2010

How to have access to system's clipboard through java programing?

Hi, i am making a text editor in java language. Now to provide cut copy and paste functions i need access to system's clipboard. How to have access to system's clipboard. Explain me in detail and if possible please provide java coding.

How to have access to system's clipboard through java programing?
Is this an AWT program? If so, you can use java.awt.Toolkit.getSystemClipboard(), which returns a java.awt.datatransfer.Clipboard.





For more information on using the data on the clipboard and copying data to it, see the article in the third link below, which explains the whole concept of DataFlavors.

brandon flowers

No comments:

Post a Comment