srcPane.add(cmnPane,gbc); gbc.gridx=0;gbc.gridy=0;gbc.gridwidth=2;gbc.gridheight=3;gbc.fill=GridBagConstraints.BOTH;gbc.anchor=GridBagConstraints.WEST;   addPane.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED),"Common",TitledBorder.CENTER,TitledBorder.CENTER));  panel.add(tabPane,gbc); return panel;   }
panel.add(tabPane, gbc); return panel; }
public JPanel createSourcePanel(int src){  JPanel panel = new JPanel();  gbc.gridx=0;gbc.gridy=0;gbc.gridwidth=2;gbc.gridheight=3;gbc.fill=GridBagConstraints.BOTH;gbc.anchor=GridBagConstraints.WEST;  panel.setLayout(new GridBagLayout());  final JTabbedPane tabPane = new JTabbedPane();  JPanel srcPane = new JPanel();  JPanel addPane = new JPanel();  tabPane.addTab("Source",srcPane);  tabPane.addTab("Additive",addPane);  srcPane.setLayout(new GridBagLayout());  JPanel cmnPane = new JPanel();  cmnPane.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED),"Common",TitledBorder.CENTER,TitledBorder.CENTER));    addWidget(cmnPane,new ComboBoxWidget("Zone Low",p,new K5kSrcModel(p,src,1),new K5kSrcSender(src,0),noteName),0,0,1,1,5);  addWidget(cmnPane,new ComboBoxWidget("Zone Hi",p,new K5kSrcModel(p,src,2),new K5kSrcSender(src,1),noteName),1,0,1,1,5);  srcPane.add(cmnPane,gbc);  gbc.gridx=0;gbc.gridy=0;gbc.gridwidth=2;gbc.gridheight=3;gbc.fill=GridBagConstraints.BOTH;gbc.anchor=GridBagConstraints.WEST;    addPane.setBorder(new TitledBorder(new EtchedBorder(EtchedBorder.RAISED),"Common",TitledBorder.CENTER,TitledBorder.CENTER));  panel.add(tabPane,gbc);  return panel;}