gbc.gridy = gbc.RELATIVE;
gbc.gridy = GridBagConstraints.RELATIVE;
    public KawaiK4DrumsetEditor(Patch patch) {        super("Kawai K4 Drumset Editor", patch);        // Common Pane        gbc.weightx = 0;        JPanel cmnPane = new JPanel();        JPanel keyPane;        cmnPane.setLayout(new GridBagLayout());	addWidget(cmnPane,		  new ScrollBarWidget("Recv.Ch.", patch, 0, 15, 1,				      new K4Model(patch, 0, 0x0f),				      new K4Sender(70)),		  0, 0, 1, 1, 1);        addWidget(cmnPane,		  new ScrollBarWidget("Volume", patch, 0, 100, 0,				      new K4Model(patch, 1),				      new K4Sender(71)),		  0, 1, 1, 1, 1);	addWidget(cmnPane,		  new ScrollBarWidget("Velocity Depth", patch, 0, 100, -50,				      new K4Model(patch, 2),				      new K4Sender(72)),		  0, 2, 1, 1, 9);        JPanel padPane = new JPanel();        padPane.setLayout(new GridBagLayout());        final JComboBox cb = new JComboBox(NOTE_NAME);        padPane.add(cb);        cb.addActionListener(new ActionListener() {		public void actionPerformed(ActionEvent e) {		    drum = cb.getSelectedIndex();		    SysexWidget w;		    for (int i = 0; i < widgetList.size(); i++) {			w  = ((SysexWidget) widgetList.get(i));			w.setValue();			if (w instanceof ScrollBarWidget)			    ((ScrollBarWidget) w).slider.setValue(w.getValue());			if (w instanceof ScrollBarLookupWidget)			    ((ScrollBarLookupWidget) w).slider.setValue(w.getValue());			if (w instanceof ComboBoxWidget)			    ((ComboBoxWidget) w).cb.setSelectedIndex(w.getValue());			if (w instanceof CheckBoxWidget)			    ((CheckBoxWidget) w).cb.setSelected((w.getValue() > 0));                }		}	    }			     );        keyPane = new JPanel();        keyPane.setLayout(new GridBagLayout());        addWidget(keyPane,		  new ComboBoxWidget("Output", patch,				     new K4Model(patch, 11/* +11*i */, 0x70),				     new K4DrumSender(73), SUBMIX),		  0, 0, 1, 1, 8);        addWidget(keyPane,		  new ComboBoxWidget("Wave 1", patch,				     new K4DrumWaveModel(patch, 0),				     new K4DrumSender(74), WAVE_NAME),		  0, 1, 2, 1, 39);        addWidget(keyPane,		  new ScrollBarWidget("Decay 1", patch, 0, 100, 0,				      new K4DrumModel(patch, 11 + 4/*+11*i*/),				      new K4DrumSender(76)),		  0, 2, 2, 1, 0);	addWidget(keyPane,		  new ScrollBarWidget("Tune 1", patch, 0, 100, -50,				      new K4DrumModel(patch, 11 + 6/*+11*i*/),				      new K4DrumSender(78)),		  0, 3, 2, 1, 0);        addWidget(keyPane,		  new ScrollBarWidget("Level 1", patch, 0, 100, 0,				      new K4DrumModel(patch, 11 + 8/*+11*i*/),				      new K4DrumSender(80)),		  0, 4, 2, 1, 0);	addWidget(keyPane,		  new ComboBoxWidget("Wave 2", patch,				     new K4DrumWaveModel(patch, 1),				     new K4DrumSender(75), WAVE_NAME),		  0, 5, 2, 1, 39);	addWidget(keyPane,		  new ScrollBarWidget("Decay 2", patch, 0, 100, 0,				      new K4DrumModel(patch, 11 + 5/*+11*i*/),				      new K4DrumSender(77)),		  0, 6, 2, 1, 0);	addWidget(keyPane,		  new ScrollBarWidget("Tune 2", patch, 0, 100, -50,				      new K4DrumModel(patch, 11 + 7/*+11*i*/),				      new K4DrumSender(79)),		  0, 7, 2, 1, 0);	addWidget(keyPane,		  new ScrollBarWidget("Level 2", patch, 0, 100, 0,				      new K4DrumModel(patch, 11 + 9/*+11*i*/),				      new K4DrumSender(81)),		  0, 9, 2, 1, 0);	cmnPane.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED),					   "Common", TitledBorder.CENTER, TitledBorder.CENTER));        gbc.gridx = gbc.REMAINDER; gbc.gridy = 0;	gbc.gridwidth = gbc.REMAINDER; gbc.gridheight = 1;	gbc.fill = GridBagConstraints.BOTH;	gbc.anchor = GridBagConstraints.EAST;        scrollPane.add(cmnPane, gbc);        //gbc.gridx = gbc.REMAINDER;        gbc.gridy = gbc.RELATIVE;	//gbc.gridwidth=gbc.REMAINDER;gbc.gridheight=1;	//gbc.fill=GridBagConstraints.BOTH;gbc.anchor=GridBagConstraints.EAST;        padPane.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED),					   "Choose a Pad", TitledBorder.CENTER, TitledBorder.CENTER));        scrollPane.add(padPane, gbc);	keyPane.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED),					   "Drum Setting", TitledBorder.CENTER, TitledBorder.CENTER));        //gbc.gridx=gbc.REMAINDER;gbc.gridy=gbc.RELATIVE;gbc.gridwidth=gbc.REMAINDER;        gbc.gridheight = 3;        //gbc.fill=GridBagConstraints.BOTH;gbc.anchor=GridBagConstraints.EAST;        scrollPane.add(keyPane, gbc);        pack();        show();    }