final OverviewPanel overview = new OverviewPanel(alignPanel, frame,
showHidden);
frame.setContentPane(overview);
- Desktop.addInternalFrame(frame, "", true, frame.getWidth(),
- frame.getHeight(), true, true);
+
+ alignPanel.setOverviewPanel(overview);
+ alignPanel.setOverviewTitle(this);
+
+ Desktop.addInternalFrame(frame, overview.getTitle(), true,
+ frame.getWidth(), frame.getHeight(), true, true);
frame.pack();
frame.setLayer(JLayeredPane.PALETTE_LAYER);
final AlignmentPanel thePanel = this.alignPanel;
frame.addKeyListener(getKeyListeners()[0]);
}
- alignPanel.setOverviewPanel(overview);
- alignPanel.setOverviewTitle(this);
-
return overview;
}