JTexrField needs to respond to drop - pls hlp
So, DnD is cool - and in Java, it works. Just set the component where the drag starts to allow that:
I'd like the JTextField to raise an event:
- cleaning up the received data, now it gets the raw stuff, and I need an ID from that string
- starting up another void() with the received ID
I read the tutorials but - for blisters - cannot see the "light", please shed some (light, that is) :D
Far be it from me to answer my own questions (like having a conversation with myself - I'm not that lonely :D ) but, I've licked it - I think.
Drag-n-Drop in Java, in a few lines:
- Set up the GUI
- mark the component that needs to "export" data ie where the drag begins with:
Hope to have helped - for once...
Wellness to all out there - in WonderLand, where they use Linux.
I'm off to bed...
|All times are GMT -5. The time now is 05:09 PM.|