17-07-2007, 12:16 PM
Hiya...
I have hesitated to post this here because I know Zone Manager (http://goosebumps4all.net/ZoneManager/) is not really being supported... but I guess I have no choice until I become a true Master of Prefuse (MoP)...
I am customizing the sample SpaceForAll2.java.. in the HereWeGo() method, there is a addControlListener for keyboard events..
I tried to add a itemClicked() or itemEntered() method below it, but it doesn't intercept the mouse clicks.
I wonder if anyone can advise me or... give me some tips on what I have overlooked in this case?
Thank you very much...
I have hesitated to post this here because I know Zone Manager (http://goosebumps4all.net/ZoneManager/) is not really being supported... but I guess I have no choice until I become a true Master of Prefuse (MoP)...

I am customizing the sample SpaceForAll2.java.. in the HereWeGo() method, there is a addControlListener for keyboard events..
Code:
view.addControlListener(new ControlAdapter() {
public void keyPressed(KeyEvent e) {
if (e.getKeyCode() == 10) {
newZoneShuffleAndCatchPlease();
}
}
});I tried to add a itemClicked() or itemEntered() method below it, but it doesn't intercept the mouse clicks.
Code:
public void itemClicked(VisualItem item, MouseEvent e) {
System.out.println("itemClicked()"); // doesn't come here at all!
if (!SwingUtilities.isLeftMouseButton(e))
return;
if (item.canGetString(label)) {
jlabel1.setText(item.getString(label));
}
}I wonder if anyone can advise me or... give me some tips on what I have overlooked in this case?
Thank you very much...


