commonPanel.add(new ScrollBarWidget("Mod LFO Pitch Depth", p, 0, 15, 0, new TG100Model(p, 13),  new TG100Sender(0x06) ), gbc );
commonPanel.add(new ScrollBarWidget("Mod LFO Pitch Depth", p, 0, 15, 0, new TG100Model(patch, 13),  new TG100Sender(0x06) ), gbc );
	private Container buildCommonWindow() {		Box verticalBox = Box.createVerticalBox();		GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints gbc = new GridBagConstraints();        gbc.fill = GridBagConstraints.HORIZONTAL;        gbc.insets = new Insets(5,2,5,2);  // padding		JPanel commonPanel =  new JPanel();		commonPanel.setLayout(gridbag);		// Name		gbc.gridx = 0;        gbc.gridy = 0;		commonPanel.add(new PatchNameWidget("Name", p), gbc);		// Voice Mode		ComboBoxWidget voiceModeWidget = new ComboBoxWidget("Voice Mode", p, new TG100Model(p, 7), new TG100Sender(0x00), TG100Constants.VOICE_MODE);		voiceModeWidget.addEventListener(new ItemListener() {			public void itemStateChanged (ItemEvent e) {				if (e.getStateChange() == ItemEvent.SELECTED) {					JComboBox oComboBox = (JComboBox)e.getSource();					boolean enable = (0 == oComboBox.getSelectedIndex())? false: true;					oTabs.setEnabledAt(2, enable);					element2Panel.setEnabled(enable);				}			}		});		gbc.gridx = 1;        gbc.gridy = 0;		commonPanel.add(voiceModeWidget, gbc);		// Portamento Time		gbc.gridx = 0;        gbc.gridy = 1;        gbc.gridwidth = 2;		commonPanel.add(new ScrollBarWidget("Portamento Time", p, 0, 127, 0, new TG100Model(p, 12),  new TG100Sender(0x05) ), gbc );		// Mod LFO Pitch Depth		gbc.gridy = 2;		commonPanel.add(new ScrollBarWidget("Mod LFO Pitch Depth", p, 0, 15, 0, new TG100Model(p, 13),  new TG100Sender(0x06) ), gbc );		// CAF LFO Pitch Depth		gbc.gridx = 2;		gbc.gridwidth = 1;		commonPanel.add(new ScrollBarWidget("CAF LFO Pitch Depth", p, 0, 15, 0, new TG100Model(p, 15),  new TG100Sender(0x08) ), gbc );		commonPanel.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED),"Common",TitledBorder.CENTER,TitledBorder.CENTER));		verticalBox.add(commonPanel, gbc);        // *** Element 1 Common Parameters ***		JPanel element1Panel =  new JPanel();        element1Panel.setLayout(gridbag);		// Element 1 Level		gbc.gridx = 0;        gbc.gridy = 0;		element1Panel.add(new ScrollBarWidget("Element 1 Level", p, 0, 127, 0, new TG100Model(p, 8),  new TG100Sender(0x01) ), gbc );		// Element 1 Detune		gbc.gridx = 2;		element1Panel.add(new ScrollBarWidget("Element 1 Detune", p, 32, 95, -64, new TG100Model(p, 10),  new TG100Sender(0x03) ), gbc );		// Element 1 Pitch Rate Scaling		gbc.gridx = 0;        gbc.gridy = 1;		element1Panel.add(new ComboBoxWidget("Element 1 Pitch Rate Scaling", p, new TG100Model(p, 17), new TG100Sender(0x0A), TG100Constants.PITCH_RATE_SCALING), gbc);		// Element 1 Pitch Rate Center Note		gbc.gridx = 1;		element1Panel.add(new ComboBoxWidget("Element 1 Pitch Rate Center Note", p, new TG100Model(p, 18), new TG100Sender(0x0B), TG100Constants.NOTES), gbc);		// Element 1 Note Shift		gbc.gridx = 2;		element1Panel.add(new ScrollBarWidget("Element 1 Note Shift", p, 40, 88, -64, new TG100Model(p, 19),  new TG100Sender(0x0C) ), gbc );        element1Panel.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED),"Element 1",TitledBorder.CENTER,TitledBorder.CENTER));        verticalBox.add(element1Panel);		// *** Element 2 Common Parameters ***		element2Panel =  new JPanel();        element2Panel.setLayout(gridbag);		// Element 2 Level		gbc.gridx = 0;        gbc.gridy = 0;		element2Panel.add(new ScrollBarWidget("Element 2 Level", p, 0, 127, 0, new TG100Model(p, 9),  new TG100Sender(0x02) ), gbc  );		// Element 2 Detune		gbc.gridx = 2;		element2Panel.add(new ScrollBarWidget("Element 2 Detune", p, 32, 95, -64, new TG100Model(p, 11),  new TG100Sender(0x04) ), gbc  );		// Element 2 Pitch Rate Scaling		gbc.gridx = 0;        gbc.gridy = 1;		element2Panel.add(new ComboBoxWidget("Element 2 Pitch Rate Scaling", p, new TG100Model(p, 21), new TG100Sender(0x0E), TG100Constants.PITCH_RATE_SCALING), gbc );		// Element 2 Pitch Rate Center Note		gbc.gridx = 1;		element2Panel.add(new ComboBoxWidget("Element 2 Pitch Rate Center Note", p, new TG100Model(p, 22), new TG100Sender(0x0F), TG100Constants.NOTES), gbc );		// Element 2 Note Shift		gbc.gridx = 2;		element2Panel.add(new ScrollBarWidget("Element 2 Note Shift", p, 40, 88, -64, new TG100Model(p, 20),  new TG100Sender(0x0D) ), gbc  );		element2Panel.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED),"Element 2",TitledBorder.CENTER,TitledBorder.CENTER));		verticalBox.add(element2Panel);		return verticalBox;	}