|
You expansion should be the result of a mouse
press+release. When are you expanding?
I am drawing a DirectedGraph, and each node in the
graph has had a MouseListener and a MouseMotionListener added to it.
On right mouse click, I "expand" the node
(adding more nodes and edges to the graph). I am finding that in addition,
some of my new nodes are being expanded. It appears that the original mouse
click is also being interpreted by the new nodes as a request to expand (a new
node typically appears just where the original one was). None of this
happens in debug mode, when I break at the first mouse click event. I do
have a MouseEvent.consume() before I do the expansion, but it does not seem to
be having the desired effect.
Advice please?
|