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).

View this message in context:
Sent from the Users forum mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to