public void close() { super.close(); record = false; textArea = null; commandName = null; instance = null; }
public void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if (e.getID()==WindowEvent.WINDOW_CLOSING) { instance = null; } } //Adapted from ImageJ code by Wayne Rasband
public void windowClosing(WindowEvent e) { super.windowClosing(e); } public void processWindowEvent(WindowEvent e) {
public PlugInFrame(String title) { super(title); enableEvents(AWTEvent.WINDOW_EVENT_MASK); this.title = title; ImageJ ij = IJ.getInstance(); addWindowListener(this); addFocusListener(this); if (IJ.isLinux()) setBackground(ImageJ.backgroundColor); if (ij!=null && !IJ.isMacOSX()) { Image img = ij.getIconImage(); if (img!=null) try {setIconImage(img);} catch (Exception e) {} } }
/** Closes this window. */ public void close() { //setVisible(false); dispose(); WindowManager.removeWindow(this); }
public Insets getInsets() { Insets i = super.getInsets(); return new Insets(i.top+10, i.left+10, i.bottom+10, i.right+10); }
public PlugInFrame(String title) { super(title); enableEvents(AWTEvent.WINDOW_EVENT_MASK); this.title = title; ImageJ ij = IJ.getInstance(); addWindowListener(this); addFocusListener(this); if (IJ.isLinux()) setBackground(ImageJ.backgroundColor); if (ij!=null && !IJ.isMacOSX()) { Image img = ij.getIconImage(); if (img!=null) try {setIconImage(img);} catch (Exception e) {} } }
/** Closes this window. */ public void close() { //setVisible(false); dispose(); WindowManager.removeWindow(this); }
public Insets getInsets() { Insets i = super.getInsets(); return new Insets(i.top+10, i.left+10, i.bottom+10, i.right+10); }
public void close() { super.close(); instance = null; }
public void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if (e.getID()==WindowEvent.WINDOW_CLOSING) { instance = null; } if (!IJ.isMacro()) ignoreInterrupts = false; }
/** * VJUserInterface has been closed. Set the instance back to null. * @param e a WindowEvent containing the type of event that caused closing. */ public void windowClosing(WindowEvent e) { super.windowClosing(e); instance = null; if (rs instanceof VJRenderView) rs.kill(); rs = null; v = null; renderer = null; System.gc(); synchronized(this) { notify(); } } /**
public void close() { super.close(); record = false; textArea = null; commandName = null; instance = null; }
public void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if (e.getID()==WindowEvent.WINDOW_CLOSING) { instance = null; } if (!IJ.isMacro()) ignoreInterrupts = false; }
public void close() { super.close(); instance = null; }
public void close() { super.close(); instance = null; done = true; synchronized(this) { notify(); } }
public void close() { super.close(); instance = null; location = getLocation(); }
public void close() { super.close(); instance = null; location = getLocation(); }
public void close() { super.close(); instance = null; done = true; Prefs.set("cthresholder.dark", darkBackground.getState()); synchronized(this) { notify(); } }
public void close() { super.close(); instance = null; done = true; Prefs.set("cthresholder.dark", darkBackground.getState()); synchronized(this) { notify(); } }