gbc.gridx=0;gbc.gridy=3;gbc.gridwidth=1;gbc.gridheight=1;
gbc.gridx=0;gbc.gridy=4;gbc.gridwidth=1;gbc.gridheight=2;
  public AlesisQSProgramEditor(Patch patch)  {    super ("Alesis QS series Program Editor",patch);    JPanel topPane = new JPanel();    topPane.setLayout(new GridBagLayout());    addWidget(topPane,new PatchNameWidget("Name",patch),0,0,1,1,0);    gbc.gridx=0;gbc.gridy=0;gbc.gridwidth=3;gbc.gridheight=1;    scrollPane.add(topPane, gbc);    for(int i=1; i<5; i++) {        String name = new String("Sound ");        name += i;        //120.	Sound enable	            16	    0	    3	0	    1	1	    84:3        addWidget(scrollPane,new CheckBoxWidget(name, patch,                                                new SoundModel(patch,i-1,1,84,3),new ProgSender(i-1,16,0,3)),                                                i,0,1,1,i*-1);    }    JTabbedPane soundPane=new JTabbedPane();    for (int i=0; i< 4; i++)    {        int controlIdx=0;        int yPos=0;        JPanel panel = new JPanel();        panel.setLayout(new GridBagLayout());        soundPane.addTab("Sound "+(i+1),panel);        //#	Parameter name	                Func	Page	Pot	Offset	Lim bits	bit address        // 0.	Keyboard / drum mode (=0)	16	    0	    0	0	    1	1	    0:0        // TODO        JPanel voicePane=new voicePanel(patch, i);        gbc.gridx=0;gbc.gridy=0;gbc.gridwidth=1;gbc.gridheight=1;        panel.add(voicePane, gbc);        controlPanel levelPane=new levelPanel(patch,i);        gbc.gridx=0;gbc.gridy=1;gbc.gridwidth=1;gbc.gridheight=1;        panel.add(levelPane, gbc);        controlPanel pitchPane=new pitchPanel(patch,i);        gbc.gridx=0;gbc.gridy=2;gbc.gridwidth=1;gbc.gridheight=1;        panel.add(pitchPane, gbc);        JPanel filterPane=new filterPanel(patch, i);        gbc.gridx=0;gbc.gridy=3;gbc.gridwidth=1;gbc.gridheight=1;        panel.add(filterPane, gbc);        JPanel amplitudePane=new amplitudePanel(patch, i);        gbc.gridx=0;gbc.gridy=4;gbc.gridwidth=1;gbc.gridheight=1;        panel.add(amplitudePane, gbc);        JPanel rangePane=new rangePanel(patch, i);        gbc.gridx=0;gbc.gridy=5;gbc.gridwidth=1;gbc.gridheight=1;        panel.add(rangePane, gbc);        JPanel envPane=new envelopePanel("Pitch envelope", patch, i, 12, 53, 0);        gbc.gridx=2;gbc.gridy=0;gbc.gridwidth=1;gbc.gridheight=1;        panel.add(envPane, gbc);    }    gbc.gridx=0;gbc.gridy=1;gbc.gridwidth=6;gbc.gridheight=2;    scrollPane.add(soundPane,gbc);    pack();    show();  }