making JTextField transparent to DND-Actions?
I would like to know, how I can (temporarily) prevent a JTextField to respond to DnD-Actions, or more precisely token, how to make them invisible to DnD.
I have a 4x5 grid pane filled alternating with JLabel and JTextField.
The JLabels are the drag source and the JPanel containing all components should be the drop target.
When I drag a JLabel over another JLabel, this is transparent and the JPanel is responding to the DnD events.
When I drag a JLabel over the JTextField, the JPane happens to see a dragExit(), which I would like to prevent.
I tried to use setEnabled(false) and setEditable(false), but it makes no difference. Neither does the opaque state of the JLabel change anything.
Any hint is welcome.