Name: krT82822 Date: 11/03/99
java version "1.2.2"
HotSpot VM (1.0.1, mixed mode, build c)
Currently, to see if the Paste menu item in a Java application should be
enabled, you must do Clipboard.getContents(), and if it doesn't return null,
see if the returned Transferable has a compatible datatype by calling
Transferable.isDataFlavorSupported(). However, getContents() can take a while
if the clipboard contents is large (e.g. many pages of text).
It isn't actually necessary to retrieve the contents of the clipboard to enable
the menu item, only to see if the clipboard contains appropriate data. A method
Clipboard.isDataFlavorSupported() would be very helpful if it were faster than
Clipboard.getContents().
(Review ID: 97424)
======================================================================