JPanel selectPanel = new JPanel(); selectPanel.setLayout(new BoxLayout(selectPanel, BoxLayout.Y_AXIS));  noteSelectPanel.add(selectPanel,gbc);
JPanel triggerPanel = new JPanel(); triggerPanel.setLayout(new BoxLayout(triggerPanel, BoxLayout.Y_AXIS));  triggerPanel.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED),"Trigger Parameters",TitledBorder.CENTER,TitledBorder.CENTER)); panel.add(triggerPanel,gbc); addTriggerWidgets(patch, triggerPanel);  addSelectedNoteWidget(patch, noteSelectPanel);
    private void addSubPanels(Patch patch, JPanel panel) {        JPanel noteSelectPanel = new JPanel();                noteSelectPanel.setLayout(new BoxLayout(noteSelectPanel, BoxLayout.Y_AXIS));//        noteSelectPanel.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED),"noteSelectPanel",TitledBorder.CENTER,TitledBorder.CENTER));        panel.add(noteSelectPanel,gbc);                JPanel selectPanel = new JPanel();                selectPanel.setLayout(new BoxLayout(selectPanel, BoxLayout.Y_AXIS));        //        noteSelectPanel.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED),"selectPanel",TitledBorder.CENTER,TitledBorder.CENTER));        noteSelectPanel.add(selectPanel,gbc);                        JPanel parmsPanel = new JPanel();                parmsPanel.setLayout(new BoxLayout(parmsPanel, BoxLayout.Y_AXIS));//        parmsPanel.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED),"parmsPanel",TitledBorder.CENTER,TitledBorder.CENTER));        parmsPanel.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED),"Selected Note Parameters",TitledBorder.CENTER,TitledBorder.CENTER));        noteSelectPanel.add(parmsPanel,gbc);                addParmsSubPanels(patch, parmsPanel);                JPanel triggerPanel = new JPanel();                triggerPanel.setLayout(new BoxLayout(triggerPanel, BoxLayout.Y_AXIS));        //        parmsPanel.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED),"triggerPanel",TitledBorder.CENTER,TitledBorder.CENTER));        triggerPanel.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED),"Trigger Parameters",TitledBorder.CENTER,TitledBorder.CENTER));        panel.add(triggerPanel,gbc);                addTriggerWidgets(patch, triggerPanel);        addSelectedNoteWidget(patch, selectPanel);    }