How to identify that we are dragging mouse on the Jtree?

Hi Guys,

How to Identify that we are dragging the mouse on the JTree ?

I have this intrigue problem where i need to identify whether the user is clicking or dragging on the tree. Based on that result I need to select some other row in the tree table.

Is there a easy way to do it

Please help

-nice dude

[339 byte] By [nicecude31a] at [2007-11-27 11:27:54]
# 1

See

MouseMotionListener

MouseListener

if those two don't do what you want them to do, see

DragGestureListener

tjacobs01a at 2007-7-29 16:18:48 > top of Java-index,Desktop,Core GUI APIs...
# 2

Instead of using the mouse listeners i want to use TreeSelectionListeners. can it be done like that?

-nicedude

nicecude31a at 2007-7-29 16:18:48 > top of Java-index,Desktop,Core GUI APIs...
# 3

> Instead of using the mouse listeners i want to use

> TreeSelectionListeners. can it be done like that?

nope

tjacobs01a at 2007-7-29 16:18:48 > top of Java-index,Desktop,Core GUI APIs...