JSLFrame[] jList = PatchEdit.desktop.getAllFrames();
JSLFrame[] jList = JSLDesktop.getAllFrames();
		public void JSLFrameClosing(JSLFrameEvent e) {		    JSLFrame[] jList = PatchEdit.desktop.getAllFrames();		    for (int j = 0; j < jList.length; j++)			if (jList[j] instanceof PatchEditorFrame) {			    if (((PatchEditorFrame) (jList[j])).bankFrame == instance) {				jList[j].moveToFront();				try {				    jList[j].setSelected(true);				    jList[j].setClosed(true);				} catch (Exception e1) {				}			    }			}		}