-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b04
-
x86
-
windows_xp
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2140864 | 6u1 | Alexey Utkin | P3 | Closed | Won't Fix |
Run the test case below, or any other drag and drop enabled Swing demo. Enter some text, drag it, and drop it in the window. The drop cursor flashes to NO_DROP temporarily. This is a very recent regression. However, it does NOT seem related to 4869264 which was recently putback. And it is NOT the same issue as 6388028 which talks about the drop cursor flashing when the action is changed.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class DTest extends JFrame {
public DTest() {
super("DTest");
JTextArea ta = new JTextArea();
ta.setDragEnabled(true);
getContentPane().add(new JScrollPane(ta));
}
private static void createAndShowGUI(String[] args) {
DTest test = new DTest();
test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
test.setSize(400, 400);
test.setLocationRelativeTo(null);
test.setVisible(true);
}
public static void main(final String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI(args);
}
});
}
}
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class DTest extends JFrame {
public DTest() {
super("DTest");
JTextArea ta = new JTextArea();
ta.setDragEnabled(true);
getContentPane().add(new JScrollPane(ta));
}
private static void createAndShowGUI(String[] args) {
DTest test = new DTest();
test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
test.setSize(400, 400);
test.setLocationRelativeTo(null);
test.setVisible(true);
}
public static void main(final String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI(args);
}
});
}
}
- backported by
-
JDK-2140864 Regression: Drop cursor flashes to NO_DROP temporarily when dropping
- Closed
- relates to
-
JDK-6480706 Third party bug. MS OLE Drag-n-drop lose "no-drop" custom cursor selected in IDropSour::GiveFeedback
- Closed
-
JDK-6502564 Regression: Drop cursor flashes to NO_DROP temporarily when dropping
- Closed
-
JDK-6178382 Setting the cursor to CROSSHAIR_CURSOR in a JFrame displays TEXT_CURSOR instead
- Closed
-
JDK-6446881 Key events are not dispatched during a drag operation.
- Open