Register / Login
Win a copy of
Cross-Platform Desktop Applications: Using Node, Electron, and NW.js
this week in the
this forum made possible by our volunteer staff, including ...
Roel De Nijs
Stephan van Hulst
Swing / AWT / SWT
drag and drop with Jlist (weird)
posted 12 years ago
I have 2 lists (A & B) where you can drag items from one another.
The problem is (and this is wierd) that if there is no item on B, you cannot drag anything from A to B.
If there's somthing on B, and you want to move an item from A to B, you first have to drag an item from B to A and only then drag an item from A to B.
does anyone have any idea?
list = new
It is sorta covered in the
JavaRanch Style Guide
Boost this thread!
Count items in JList
can you resolve these questions?Thanks.
Drag and Drop from JList to JTree