My Wicket app needs to read the plain-text contents of the clipboard, but
Transferable.getTransferDataFlavors() is returning empty.

The really weird thing is that when I run the Wicket app in DEBUG mode, a
valid DataFlavor is returned and everything works!  Here is a pared down
source code listing:

Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
Transferable contents = clipboard.getContents(null);
int count = contents.getTransferDataFlavors().length;

count is 0 in DEBUG mode and is > 0 in non-DEBUG mode (I tried it in
Wicket's  DEVELOPMENT and DEPLOYMENT modes, both fail).

Thoughts?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Unicode-data-on-the-clipboard-not-a-supported-DataFlavor-tp3004359p3004359.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to