JGoButton draggable?


How can I make A JGoButton draggble, or any JGoControl / JComponent for that matter ?
I tried to add MouseMotion/MouseEvent listener to the JComponent and tried to delagate to the view but nothing happens.

i guess that I need to set some mouse state first.

Can someone help me?

Dennis Rutjes


This might be a bit of overkill to answer your question, but you might find it useful for reasons beyond your immediate question.
We’re adding a new example for version 5.1: JTreeApp.
It’s a simple example that has nodes that include JGoControls that display JTrees. There are various additional listeners defined on the JTrees in order to support dragging and drawing new links.


thx, that did the trick