Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8020371

[macosx] applets with Drag and Drop fail with IllegalArgumentException

XMLWordPrintable

    • b86
    • b100
    • os_x
    • Verified

        Applets which explicitly call component.setDropTarget(new DropTarget()) fail with IllegalArgumentException.

        This is a regression of the fix for JDK-8006941.

        The proposed testcase:

        import javax.swing.*;
        import java.awt.dnd.DropTarget;

        public class NewTabApplet extends JApplet {

            public void init() {
                JButton b = new JButton("Click me");
                b.setDropTarget(new DropTarget());
                this.add(b);
            }
        }

        Expected behavior: applet starts and shows the button.
        Real behavior: applet fails with IllegalArgumentException

              pchelko Petr Pchelko (Inactive)
              pchelko Petr Pchelko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: