synchronized (in_fake_activation) { if (in_fake_activation.booleanValue()) return; if (f == toolbar && last_selected != null && last_selected != toolbar.getJFrame()) { in_fake_activation = Boolean.TRUE; last_selected.fakeActivate(); in_fake_activation = Boolean.FALSE; } }
if (f == toolbar) { synchronized (in_fake_activation) { if (in_fake_activation.booleanValue()) return;   if (last_selected != null && last_selected != toolbar.getJFrame() && !last_selected.isIcon() && !last_selected.isClosing()) { showState(last_selected.getJSLFrame(), "FakeActivated"); in_fake_activation = Boolean.TRUE; last_selected.fakeActivate(); in_fake_activation = Boolean.FALSE; } } } else { last_selected = null; }
	public void JSLFrameActivated(JSLFrameEvent e) {	    JSLFrame f = e.getJSLFrame();	    synchronized (in_fake_activation) {		if (in_fake_activation.booleanValue())		    return;		if (f == toolbar && last_selected != null		    && last_selected != toolbar.getJFrame()) {		    in_fake_activation = Boolean.TRUE;		    last_selected.fakeActivate();		    in_fake_activation = Boolean.FALSE;		}	    }	    selected = f.getJFrame();	    ErrorMsg.reportStatus(ErrorMsg.FRAME, "\""+selected.getTitle()+"\" selected");	}