Graph2DView doesn't receive any mouse events |
| Applies to: yFiles for Java 2.9, 2.8, 2.7 |
Type: Troubleshooting
Categories this article belongs to:
| yFiles for Java | > yFiles Viewer | > Displaying and Editing Graphs | > User Interaction |
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 |


