English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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.

2006-12-16 19:37:12 · 1 answers · asked by rAh!L 2 in Computers & Internet Programming & Design

1 answers

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.

2006-12-16 19:56:02 · answer #1 · answered by watsonc64 3 · 0 0

fedest.com, questions and answers