public void focusGained(FocusEvent e) { WindowManager.setWindow(this); }
public void focusGained(FocusEvent e) { WindowManager.setWindow(this); }
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); }
public void windowActivated(WindowEvent e) { ImageJ ij = IJ.getInstance(); //if (IJ.isMacOSX() && ij!=null && !ij.isActive() && !(this instanceof ThresholdAdjuster)) // ij.toFront(); WindowManager.setWindow(this); }
/** Override windowActivated in PlugInFrame to prevent Mac menu bar from being installed. */ public void windowActivated(WindowEvent e) { if (IJ.debugMode) IJ.log("Editor.windowActivated"); WindowManager.setWindow(this); instance = this; }
/** Override windowActivated in PlugInFrame to prevent Mac menu bar from being installed. */ public void windowActivated(WindowEvent e) { if (IJ.debugMode) IJ.log("Editor.windowActivated"); WindowManager.setWindow(this); instance = this; }
public void windowActivated(WindowEvent e) { WindowManager.setWindow(getFrame()); }
public void windowActivated(WindowEvent e) { if (Prefs.setIJMenuBar) { this.setMenuBar(Menus.getMenuBar()); Menus.setMenuBarCount++; } WindowManager.setWindow(this); }
private void toFront(String title) { if (title==null) return; Frame frame = WindowManager.getFrame(title); if (frame!=null) { frame.toFront(); WindowManager.setWindow(frame); } }
public void show() { WindowManager.addWindow(frame); // ImageJ's own Window Manager GUI.runOnUIThreadAndWait(new Runnable() { @Override public void run() { frame.setVisible(true); } }); WindowManager.setWindow(frame); // ImageJ's own Window Manager }
/** Removes the specified window from the Window menu. */ public static void removeWindow(Window win) { if (win instanceof ImageWindow) removeImageWindow((ImageWindow)win); else { int index = nonImageList.indexOf(win); ImageJ ij = IJ.getInstance(); if (index>=0) { Menus.removeWindowMenuItem(index); nonImageList.removeElement(win); } } setWindow(null); }
private void toFront(String title) { if (title==null) return; Frame frame = WindowManager.getFrame(title); if (frame!=null) { frame.toFront(); WindowManager.setWindow(frame); } }
public void windowActivated(WindowEvent e) { if (Prefs.setIJMenuBar) { this.setMenuBar(Menus.getMenuBar()); Menus.setMenuBarCount++; } WindowManager.setWindow(this); }
/** Override windowActivated in PlugInFrame. */ public void windowActivated(WindowEvent e) { if (IJ.isMacintosh() && !IJ.isJava17()) this.setMenuBar(Menus.getMenuBar()); WindowManager.setWindow(this); }
/** Override windowActivated in PlugInFrame. */ public void windowActivated(WindowEvent e) { if (IJ.isMacintosh() && !IJ.isJava17()) this.setMenuBar(Menus.getMenuBar()); WindowManager.setWindow(this); }
public void windowActivated(WindowEvent e) { super.windowActivated(e); if (IJ.isMacro()) { // do nothing if macro and RGB image ImagePlus imp2 = WindowManager.getCurrentImage(); if (imp2!=null && imp2.getBitDepth()==24) { return; } } previousImageID = 0; // user may have modified image setup(); WindowManager.setWindow(this); }
public void windowActivated(WindowEvent e) { super.windowActivated(e); if (IJ.isMacro()) { // do nothing if macro and RGB image ImagePlus imp2 = WindowManager.getCurrentImage(); if (imp2!=null && imp2.getBitDepth()==24) { return; } } previousImageID = 0; // user may have modified image setup(); WindowManager.setWindow(this); }
public void display(String title, String text) { ta.selectAll(); ta.replaceRange(text, ta.getSelectionStart(), ta.getSelectionEnd()); ta.setCaretPosition(0); setWindowTitle(title); changes = false; if (IJ.getInstance()!=null) show(); WindowManager.setWindow(this); }
public void display(String title, String text) { ta.selectAll(); ta.replaceRange(text, ta.getSelectionStart(), ta.getSelectionEnd()); ta.setCaretPosition(0); setWindowTitle(title); changes = false; if (IJ.getInstance()!=null) show(); WindowManager.setWindow(this); }