pack();
setSize(600, 410);
	public YamahaFS1RPerformanceEditor(Patch patch)	{		super ("Yamaha FS1R Performance Editor",patch);   		initVoicesNames();				JTabbedPane oTabs = new JTabbedPane();		scrollPane.add(oTabs);				oTabs.add(buildCommonWindow(), "Common");			oTabs.add(buildEffectsWindow(), "Effects");			for (int i = 1; i <= 4; i++) {			oTabs.add(buildPartWindow(i), "Part "+i);		}				InternalFrameListener oList[] = getInternalFrameListeners();		removeInternalFrameListener(oList[0]);		addInternalFrameListener(new InternalFrameListener() {            public void internalFrameClosing(InternalFrameEvent e) {}			public void internalFrameOpened(InternalFrameEvent e) {}            public void internalFrameActivated(InternalFrameEvent e) {				// send part voice if bank is int				for (int oPart = 0; oPart < 4; oPart++) {					if (mBankSelector[oPart].getValue() == 1)// && mPartChannel[oPart].getValue() != 17) 					{						Patch oPatch = null;						if (mVoicesInEdit[oPart] != null) {							// voice currently in editing							oPatch = mVoicesInEdit[oPart].p;						}						else {							oPatch = YamahaFS1RBankDriver.getInstance().getPatch(((YamahaFS1RBankEditor)bankFrame).getBankPatch(), 128+mVoiceSelector[oPart].getValue());						}						//System.out.println("SEND VOICE "+oPart+" "+mVoiceSelector[oPart].getValue());						YamahaFS1RVoiceDriver.getInstance().sendPatch (oPatch, oPart+1);					}				}			}			public void internalFrameClosed(InternalFrameEvent e) {}			public void internalFrameDeactivated(InternalFrameEvent e) {}			public void internalFrameDeiconified(InternalFrameEvent e) {}			public void internalFrameIconified(InternalFrameEvent e) {}		});		addInternalFrameListener(oList[0]);				pack();		setVisible(true);		}