Duplicate :
|
|
Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
Name: rmT116609 Date: 10/23/2003 FULL PRODUCT VERSION : java version "1.4.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92) Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode) FULL OPERATING SYSTEM VERSION : Microsoft Windows 2000 [Version 5.00.2195] A DESCRIPTION OF THE PROBLEM : Implemeting more fine grained canImport functionality in for structures like trees using TransferHandler is not posible cause of limitation of arguments in public boolean canImport(JComponent comp, DataFlavor[] transferFlavors); To do checks to prevent moving child to its parent or parent to its child should be possible. If canImport would carry Transferable instead of DataFlavours it would make it possible to do such checks and give more feedback to user ! Somtimes it is not enought to only know the datatype to be imported. REPRODUCIBILITY : This bug can be reproduced always. CUSTOMER WORKAROUND : Write your completely own TransferHandler. Of Course. (Incident Review ID: 181502) ======================================================================
|