public void focusGained(FocusEvent e) { WindowManager.setWindow(this); }
public void windowActivated(WindowEvent e) { ImageJ ij = IJ.getInstance(); if (IJ.isMacOSX() && ij != null && !ij.isActive() && !(this instanceof ThresholdAdjuster)) ij.toFront(); WindowManager.setWindow(this); }