if (dialog != null) {
dialog.dispose();
}
dialog = new JDialog();
dialog.setLocation(GraphMatcherTester.this.getX() + GraphMatcherTester.this.getWidth(), 0);
MatchingPanel panel = new MatchingPanel();
int size = GraphMatcherTester.this.getHeight();
panel.setPreferredSize(new Dimension(size, size));
panel.setMatchingResult(result);
panel.setOptions(true, false, true);
dialog.add(panel);
dialog.pack();
dialog.setVisible(true);
}
});