return PatchEdit.desktop.getSelectedWindow() == this;
JSLDesktop d = PatchEdit.desktop; JFrame f = d.getSelectedWindow(); return (f == this) || (f == d.getToolBar().getJFrame() && d.getLastSelectedWindow() == this);
	public boolean isSelected() {	    //return isActive() || lastselection == this;	    return PatchEdit.desktop.getSelectedWindow() == this;	}