Relates :
|
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
|