|
From: Patrick H. <pa...@13...> - 2001-05-03 15:36:13
|
I am trying to handle the event generated when a VisualVertex object is
clicked on by the user. I have code similar to the following:
public class MyClass extends VisualGraph {
public boolean addVertex (Vertex v) {
try {
add(v);
VisualVertex vis_vertex = getVisaulVertex(v);
vis_vertex.addMouseListener(new MouseListener () { ... });
}
catch (Exception e) {
// Handle exception ...
}
}
}:
My listener never gets called--or at least, the mouseClicked() method
never gets called. Am I misunderstanding how vertex selection events
are generated, or does my graph have to be in a certain state for the
mouse clicks to be received?
-Patrick
Patrick L. Hartling | Research Assistant, VRAC
pa...@13... | 2624 Howe Hall -- (515)294-4916
http://www.137.org/patrick/ | http://www.vrac.iastate.edu/
|