Graph2DView doesn't receive any mouse events
Applies to: yFiles for Java 2.9, 2.8, 2.7 print article email article

Type: Troubleshooting

Things to try when your Graph2DView shows up, but does not receive any mouse events

In case your Graph2DView shows up in your GUI, but does not receive any mouse events (i.e. your registered ViewModes don't work at all), it might be that Graph2DView's internal GlassPane falsely intercepts these events. Using a Graph2DView that doesn't use a GlassPane should fix the issue:
Graph2DView graphView = new Graph2DView() {
  protected JPanel createGlassPane() { return null; };
};

Keywords: Graph2DView - glass - pane - mouse - events - ViewMode - intercept

Provide feedback:
How useful was this article?    less 1 2 3 4 5 more
Email address (optional):
COPYRIGHT © 2012 yWorks · ALL RIGHTS RESERVED imprint | terms of use | privacy policy | home