United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4485914 Need ability to disable Swing DropTarget
JDK-4485914 : Need ability to disable Swing DropTarget

Details
Type:
Bug
Submit Date:
2001-07-30
Status:
Resolved
Updated Date:
2001-08-08
Project Name:
JDK
Resolved Date:
2001-08-08
Component:
client-libs
OS:
solaris_7
Sub-Component:
javax.swing
CPU:
sparc
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
1.4.0 (beta2)

Related Reports

Sub Tasks

Description
In 1.4 Swing added support for a TransferHandler on JComponent. Once set this will add a DropTarget to the JComponent. As adding a DropTarget may affect existing applications that are adding DropTargets there needs to a way to turn this off.

                                    

Comments
EVALUATION

Yes, we should make this a System property and document it in JComponent:
    /**
     * Sets the <code>transferHandler</code> property,
     * which is <code>null</code> if the component does
     * not support data transfer operations.
     * <p>
     * If <code>newHandler</code> is not null, and the system property
     * <code>suppressSwingDropSupport</code> is not true, this will 
     * install a <code>DropTarget</code> on the <code>JComponent</code>.
     * 
     * @param newHandler  mechanism for transfer of data to
     *    and from the component
     *
     * @see TransferHandler
     * @see getTransferHandler
     * @since 1.4
     * @beaninfo
     *        bound: true
     *       hidden: true
     *  description: Mechanism for transfer of data to and from the component
     */
    public void setTransferHandler(TransferHandler newHandler);

scott.violet@eng 2001-07-30
                                     
2001-07-30
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
merlin-beta2

FIXED IN:
merlin-beta2

INTEGRATED IN:
merlin-beta2


                                     
2004-06-14



Hardware and Software, Engineered to Work Together