PasteDialog(Frame aOwner, IPatch aSource, IPatch aDest, int aPart, ArrayList aWidgets[])
PasteDialog(Frame aOwner, Patch aSource, Patch aDest, int aPart, ArrayList aWidgets[])
	PasteDialog(Frame aOwner, IPatch aSource, IPatch aDest, int aPart, ArrayList aWidgets[])	{		super(aOwner, "Paste operators", true);				mSourcePatch = aSource;		mDestPatch = aDest;		mPart = aPart;		mWidgets = aWidgets;				getContentPane().setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS));		rbg = new ButtonGroup();		for (int i = 1; i <= 8; i++)		{			JPanel oPane = new JPanel();			oPane.add(new JLabel("Paste operator"));			JRadioButton oRadio = new JRadioButton(""+i);			oRadio.setActionCommand(""+(i-1));			oPane.add(oRadio);			rbg.add(oRadio);			oPane.add(new JLabel("to"));			mDest[i-1] = new JCheckBox(""+i);			oPane.add(mDest[i-1]);			getContentPane().add(oPane);		}		JButton oCopyVoices = new JButton ("Paste Voices");		oCopyVoices.addActionListener (new ActionListener () {			public void actionPerformed (ActionEvent e)			{				pasteVoices();				setVisible (false);		}});		getContentPane().add(oCopyVoices);		/*		JButton oCopyUnvoices = new JButton ("Paste Unvoices");		oCopyUnvoices.addActionListener (new ActionListener () {			public void actionPerformed (ActionEvent e)			{				setVisible (false);		}});		getContentPane().add(oCopyUnvoices);		*/		JButton cancel = new JButton ("Cancel");		cancel.addActionListener (new ActionListener () {			public void actionPerformed (ActionEvent e)			{				setVisible(false);			}});		getContentPane().add ( cancel );		getRootPane().setDefaultButton (cancel);		setSize(250, 400);		setVisible(true);	}