import java.awt.print.PageFormat;
import java.awt.print.PrinterJob;
import java.beans.PropertyChangeEvent;
+import java.beans.PropertyVetoException;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
{
frame.addKeyListener(getKeyListeners()[0]);
}
+
+ /*
+ * bring alignment panel to front when Overview gets focus
+ * (even after New View / eXpand / Gather!)
+ */
+ final AlignmentPanel ap = alignPanel;
+ frame.addFocusListener(new FocusAdapter()
+ {
+ @Override
+ public void focusGained(FocusEvent e)
+ {
+ try
+ {
+ ap.alignFrame.setSelected(true);
+ ap.alignFrame.setIcon(false);
+ ap.alignFrame.setDisplayedView(ap);
+ } catch (PropertyVetoException e1)
+ {
+ }
+ }
+ });
alignPanel.setOverviewPanel(overview);
}