Name: gm110360 Date: 10/25/2001 java version "1.4.0-beta2" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77) Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode) I like the new Swing Data Transfer mechanism mechanism in the JDK 1.4 beta. Unfortunately, I can't use it for my application, because I need to be able to accept objects which are dropped anywhere at all - including objects dropped on my frame's title bar. Using the AWT drag and drop mechanism, I can implement what I need by creating a DropTarget object and then calling setDropTarget() on my JFrame; this works because JFrame ultimately inherits from java.awt.Component, which defines setDropTarget(). I would love to use the new Swing Data Transfer mechanism instead so that I wouldn't have to implement my own DropTarget object. But I can't, because JFrame doesn't inherit from JComponent and so I can't call setTransferHandler() on a JFrame. I could call setTransferHandler() on the root pane, which is a JComponent - but that wouldn't accept objects dropped onto the frame's title bar. FYI, I'm using Windows 2000, although I suspect that this issue is platform- independent. (Review ID: 134445) ======================================================================
|