protected void updateWindowList() { // Don't build a new window list, while the old one is removed. // When an StackWindow is replaced by an OpenStackWindow, updateWindowList // is called again and the other components in the panel are removed, also. Component newWindowList = buildWindowList(); panel.remove(0); panel.add(newWindowList,BorderLayout.NORTH,0); pack(); }
protected void updateWindowList() { // Don't build a new window list, while the old one is removed. // When an StackWindow is replaced by an OpenStackWindow, updateWindowList // is called again and the other components in the panel are removed, also. Component newWindowList = buildWindowList(); panel.remove(0); panel.add(newWindowList,BorderLayout.NORTH,0); pack(); }
public SyncWindows(String s) { super(s); ijInstance = IJ.getInstance(); if (instance!=null) { WindowManager.toFront(instance); return; } instance = this; panel = controlPanel(); add(panel); pack(); setResizable(false); IJ.register(this.getClass()); if (location==null) location = getLocation(); else setLocation(location); updateWindowList(); WindowManager.addWindow(this); ImagePlus.addImageListener(this); Executer.addCommandListener(this); show(); }
public SyncWindows(String s) { super(s); ijInstance = IJ.getInstance(); if (instance!=null) { WindowManager.toFront(instance); return; } instance = this; panel = controlPanel(); add(panel); pack(); setResizable(false); IJ.register(this.getClass()); if (location==null) location = getLocation(); else setLocation(location); updateWindowList(); WindowManager.addWindow(this); ImagePlus.addImageListener(this); Executer.addCommandListener(this); show(); }