gbc.fill=gbc.HORIZONTAL; gbc.ipadx=1; gbc.anchor=gbc.WEST;
gbc.fill=GridBagConstraints.HORIZONTAL; gbc.ipadx=1; gbc.anchor=GridBagConstraints.WEST;
    public FaderBoxConfigPanel(core.AppConfig appConfig) {	super(appConfig);	setLayout (new GridBagLayout ());	GridBagConstraints gbc = new GridBagConstraints ();	gbc.fill=gbc.HORIZONTAL; gbc.ipadx=1; gbc.anchor=gbc.WEST;	// Fader Port selection	JLabel l0 = new JLabel ("Receive Faders from MIDI Port:  ");	gbc.gridx = 0; gbc.gridy = 1; gbc.gridheight = 1; gbc.gridwidth = 4;	add (l0, gbc);	enabledBox = new JCheckBox ("Enable Faders");	gbc.gridx = 1; gbc.gridy = 2; gbc.gridheight = 1; gbc.gridwidth = 2;	add (enabledBox, gbc);	enabledBox.addActionListener(new ActionListener() {                public void actionPerformed (ActionEvent e) {			setContainerEnabled(faderPanel, enabledBox.isSelected());		}	});	// create own Fader/Slider Panel	faderPanel = new JPanel(new BorderLayout(5,5));	// upper side	if (PatchEdit.newMidiAPI)	    cb4 = new JComboBox(MidiUtil.getInputMidiDeviceInfo());	else	    cb4 = new JComboBox();	resetComboBoxes();	//gbc.gridx = 1; gbc.gridy = 3; gbc.gridheight = 1; gbc.gridwidth=gbc.REMAINDER; // gbc.gridwidth = 3;	faderPanel.add (cb4, BorderLayout.NORTH);	// Fader Slider settings	// Init Slider JList and JComboBoxes	String[] n = new String[Constants.NUM_FADERS];	n[0] = "Active Slider";	for (int i = 0; i < 16; i++)	    n[i + 1] = ("Slider #" + (i + 1));	for (int i = 0; i < 12; i++)	    n[i + 17] = ("Button #" + (i + 1));	n[29] = "Button #13";	n[30] = "Button #14";	n[31] = "Slider Bank Prev";	n[32] = "Slider Bank Next";	String[] cc1 = new String[129];	// controller	String[] cc2 = new String[17]; // channel	for (int i = 0; i < 128; i++)	    cc1[i] = ("" + (i));	cc1[128] = "Off";	for (int i = 0; i < 16; i++)	    cc2[i] = ("" + (i + 1));	cc2[16] = "Off";	cbController = new JComboBox (cc1);	cbChannel = new JComboBox (cc2);	lb1 = new JList (n);	lb1.addListSelectionListener (new ListSelectionListener () {		public void valueChanged (ListSelectionEvent e) {		    setFaderController(currentFader, cbController.getSelectedIndex());		    setFaderChannel(currentFader, cbChannel.getSelectedIndex());		    cbController.setSelectedIndex (getFaderController(lb1.getSelectedIndex()));		    cbChannel.setSelectedIndex (getFaderChannel(lb1.getSelectedIndex()));		    currentFader = lb1.getSelectedIndex ();		}	    });	lb1.setSelectedIndex (0);	lb1.setSelectionMode (0);	// left side	JScrollPane scroll = new JScrollPane (lb1);	faderPanel.add(scroll,BorderLayout.WEST);	// right side	JPanel dataPanel = new JPanel ();	dataPanel.setLayout (new GridBagLayout ());	gbc.anchor = GridBagConstraints.EAST;	gbc.gridx = 0; gbc.gridy = 1; gbc.gridwidth = 2; gbc.gridheight = 1;	dataPanel.add (new JLabel ("MIDI Channel    #  "), gbc);	gbc.gridx = 0; gbc.gridy = 2; gbc.gridwidth = 2; gbc.gridheight = 1;	dataPanel.add (new JLabel ("MIDI Controller #  "), gbc);	gbc.gridx = 2; gbc.gridy = 1; gbc.gridwidth = 2; gbc.gridheight = 1;	dataPanel.add (cbChannel, gbc);	gbc.gridx = 2; gbc.gridy = 2; gbc.gridwidth = 2; gbc.gridheight = 1;	dataPanel.add (cbController, gbc);	gbc.gridx = 2; gbc.gridy = 5; gbc.gridwidth = 5; gbc.gridheight = 3;	gbc.fill = GridBagConstraints.BOTH;	dataPanel.setBorder (new EtchedBorder (EtchedBorder.RAISED));	faderPanel.add(dataPanel,BorderLayout.CENTER);	// lower side	JPanel buttonPanel = new JPanel ();	JButton b0 = new JButton ("Reset");	JButton b1 = new JButton ("Peavey PC1600x Preset");	JButton b2 = new JButton ("Kawai K5000 Knobs Preset");	b0.addActionListener (new ActionListener () {		public void actionPerformed (ActionEvent e) {		    resetSliders ();		}	    });	b1.addActionListener (new ActionListener () {		public void actionPerformed (ActionEvent e) {		    presetPC1600x ();		}	    });	b2.addActionListener (new ActionListener () {		public void actionPerformed (ActionEvent e) {		    presetKawaiK5000 ();		}	    });	buttonPanel.add (b0);	buttonPanel.add (b1);	buttonPanel.add (b2);	faderPanel.add(buttonPanel,BorderLayout.SOUTH);	gbc.gridx = 0; gbc.gridy = 8; gbc.gridwidth = 7; gbc.gridheight = 1;	add (faderPanel, gbc);    }