protected JPanel addTitledPanel(String title,int row,boolean expand){
  JPanel panel=createTitledPanel(title);
  GridBagConstraints gbc=getGbc(row);
  gbc.fill=GridBagConstraints.BOTH;
  if (expand) {
    gbc.weighty=1;
  }
 else {
    gbc.weighty=0;
  }
  base.add(panel,gbc);
  return panel;
}

protected JPanel addTitledPanel ( String title , int row , boolean expand ) { JPanel panel = createTitledPanel ( title ) ; GridBagConstraints gbc = getGbc ( row ) ; gbc . fill = GridBagConstraints . BOTH ; if ( expand ) { gbc . weighty = 1 ; } else { gbc . weighty = 0 ; } base . add ( panel , gbc ) ; return panel ; }
creates a panel with a titled border and adds it to this settingspanel .
