I would like to add the ZGRView on a JPanel. To achieve this I made some minor changes to the ZGRViewer interface. The solution below works ok. Apart from that it also creates an additional ZGRViewer window without the View. I guess this cannot be the optimal solution, so I am wondering if there is a better way to integrate the ZGRView in my Swing application?


                _zgrViewer = new ZGRViewer(false, new File(configuration.getTempDotFileName()));

GraphicsManager graphicsManager = _zgrViewer.getGraphicsManager();

                View view = graphicsManager.getView();

                JPanel zgrViewPanel = (JPanel) view.getPanel().getComponent();