Program: 51798
Project: 51798
Buggy source:
@Override public JComponent getUI(final JButton jbCreate){
  tleUtil=new TLEUtility();
  chosenSats=new HashSet<String>();
  lmSatChoices=new DefaultListModel();
  lmSatChosen=new DefaultListModel();
  jbAddSat=new JButton("String_Node_Str");
  jbAddAllSat=new JButton("String_Node_Str");
  jbRemoveSat=new JButton("String_Node_Str");
  jbRemoveAllSat=new JButton("String_Node_Str");
  lblChooseSat=new JLabel("String_Node_Str");
  lblChoiceSat=new JLabel("String_Node_Str");
  lblChosenSat=new JLabel("String_Node_Str");
  lblCollectionName=new JLabel("String_Node_Str");
  jchkbMakeCollection=new JCheckBox("String_Node_Str");
  jtfCollectionName=new JTextField("String_Node_Str",TEXT_FIELD_COL_SIZE);
  jbAddSat.setEnabled(false);
  jbAddAllSat.setEnabled(false);
  jbRemoveSat.setEnabled(false);
  jbRemoveAllSat.setEnabled(false);
  jbCreate.setEnabled(false);
  jchkbMakeCollection.setSelected(true);
  jchkbMakeCollection.setEnabled(true);
  jtfCollectionName.setEnabled(true);
  lblCollectionName.setEnabled(true);
  jtfCollectionName.setText(DEFAULT_COLLECTION_NAME);
  jtfCollectionName.selectAll();
  JPanel rootPanel=new JPanel();
  rootPanel.setLayout(new FlowLayout());
  JPanel motherPanel=new JPanel();
  motherPanel.setLayout(new BoxLayout(motherPanel,BoxLayout.Y_AXIS));
  JPanel headPanel=new JPanel();
  headPanel.setLayout(new BoxLayout(headPanel,BoxLayout.LINE_AXIS));
  JPanel bodyPanel=new JPanel();
  bodyPanel.setLayout(new BoxLayout(bodyPanel,BoxLayout.LINE_AXIS));
  JPanel footPanel=new JPanel();
  footPanel.setLayout(new BorderLayout());
  JPanel satChoicePanel=new JPanel();
  satChoicePanel.setLayout(new BoxLayout(satChoicePanel,BoxLayout.Y_AXIS));
  JPanel SatChosenPanel=new JPanel();
  SatChosenPanel.setLayout(new BoxLayout(SatChosenPanel,BoxLayout.Y_AXIS));
  JPanel addBtnsPanel=new JPanel();
  addBtnsPanel.setLayout(new GridBagLayout());
  JPanel removeBtnsPanel=new JPanel();
  removeBtnsPanel.setLayout(new GridBagLayout());
  JPanel makeCollectionPanel=new JPanel();
  makeCollectionPanel.setLayout(new BoxLayout(makeCollectionPanel,BoxLayout.Y_AXIS));
  JPanel nameCollectionPanel=new JPanel();
  nameCollectionPanel.setLayout(new BoxLayout(nameCollectionPanel,BoxLayout.X_AXIS));
  GridBagConstraints cAdd=new GridBagConstraints();
  cAdd.fill=GridBagConstraints.BOTH;
  cAdd.weightx=1.0;
  GridBagConstraints cRemove=new GridBagConstraints();
  cRemove.fill=GridBagConstraints.BOTH;
  cRemove.weightx=1.0;
  List<Object> jcbElements=new ArrayList<Object>();
  for (int i=0; i < SatCat.length; i++) {
    jcbElements.add(new ComboItem(SatCat[i][0],false));
    for (int j=1; j < SatCat[i].length; j++) {
      jcbElements.add(new ComboItem(SatCat[i][j],true));
    }
  }
  jcbSatCategories=new JComboBox(jcbElements.toArray());
  jcbSatCategories.setBackground(Color.WHITE);
  jcbSatCategories.setRenderer(new ComboRenderer());
  jcbSatCategories.addActionListener(new ComboListener(jcbSatCategories));
  jcbSatCategories.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent le){
      if (((ComboItem)jcbSatCategories.getSelectedItem()).isEnabled() == true) {
        lmSatChoices.clear();
        String choice=jcbSatCategories.getSelectedItem().toString();
        List<TLE> userSatChoices;
        if (storedSatCats.containsKey(choice)) {
          userSatChoices=storedSatCats.get(choice);
        }
 else {
          userSatChoices=tleUtil.getTLEs(choice);
          storedSatCats.put(choice,userSatChoices);
        }
        for (int i=0; i < userSatChoices.size(); i++)         lmSatChoices.addElement(userSatChoices.get(i));
        jbAddSat.setEnabled(true);
        jbAddAllSat.setEnabled(true);
        jlSatChoices.requestFocusInWindow();
        jlSatChoices.setSelectedIndex(0);
      }
    }
  }
);
  jbAddSat.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent ae){
      int selected[]=jlSatChoices.getSelectedIndices();
      int len=selected.length;
      if (len == 0) {
        return;
      }
      jbRemoveSat.setEnabled(true);
      jbRemoveAllSat.setEnabled(true);
      jchkbMakeCollection.setEnabled(true);
      jbCreate.setEnabled(true);
      for (int i=0; i < len; i++) {
        Object chosen=lmSatChoices.get(selected[i]);
        if (!satAlreadyAdded((TLE)chosen)) {
          addToChosen((TLE)chosen);
          lmSatChosen.addElement(chosen);
        }
      }
      for (int i=0; i < len; i++)       lmSatChoices.remove(selected[len - 1 - i]);
      if (lmSatChoices.isEmpty()) {
        jbAddSat.setEnabled(false);
        jbAddAllSat.setEnabled(false);
      }
 else       jlSatChoices.setSelectedIndex(0);
    }
  }
);
  jbAddAllSat.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      int size=lmSatChoices.getSize();
      for (int i=0; i < size; i++) {
        if (!satAlreadyAdded((TLE)lmSatChoices.get(0))) {
          addToChosen((TLE)lmSatChoices.get(0));
          lmSatChosen.addElement(lmSatChoices.get(0));
        }
        lmSatChoices.remove(0);
      }
      jbAddSat.setEnabled(false);
      jbAddAllSat.setEnabled(false);
      jbRemoveSat.setEnabled(true);
      jbRemoveAllSat.setEnabled(true);
      jchkbMakeCollection.setEnabled(true);
      jbCreate.setEnabled(true);
    }
  }
);
  jbRemoveSat.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      int selected[]=jlSatChosen.getSelectedIndices();
      if (selected.length == 0)       return;
      for (int i=0; i < selected.length; i++) {
        removeFromChosen((TLE)lmSatChosen.get(selected[selected.length - 1 - i]));
        lmSatChosen.remove(selected[selected.length - 1 - i]);
      }
      if (lmSatChosen.isEmpty()) {
        jbRemoveSat.setEnabled(false);
        jbRemoveAllSat.setEnabled(false);
        jchkbMakeCollection.setEnabled(false);
        jbCreate.setEnabled(false);
        jcbSatCategories.requestFocus();
      }
 else       jlSatChosen.setSelectedIndex(0);
    }
  }
);
  jbRemoveAllSat.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      lmSatChosen.clear();
      chosenSats.clear();
      jbRemoveSat.setEnabled(false);
      jbRemoveAllSat.setEnabled(false);
      jchkbMakeCollection.setEnabled(false);
      jbCreate.setEnabled(false);
    }
  }
);
  jchkbMakeCollection.addItemListener(new ItemListener(){
    @Override public void itemStateChanged(    ItemEvent e){
      if (e.getStateChange() == ItemEvent.SELECTED) {
        lblCollectionName.setEnabled(true);
        jtfCollectionName.setEnabled(true);
        jtfCollectionName.requestFocusInWindow();
        jtfCollectionName.setText(DEFAULT_COLLECTION_NAME);
        jtfCollectionName.selectAll();
      }
 else {
        lblCollectionName.setEnabled(false);
        jtfCollectionName.setText("String_Node_Str");
        jtfCollectionName.setEnabled(false);
      }
    }
  }
);
  jtfCollectionName.getDocument().addDocumentListener(new DocumentListener(){
    @Override public void removeUpdate(    DocumentEvent e){
      if (jtfCollectionName.getText().isEmpty() && jchkbMakeCollection.isSelected())       jbCreate.setEnabled(false);
 else       jbCreate.setEnabled(true);
    }
    @Override public void insertUpdate(    DocumentEvent e){
      jbCreate.setEnabled(true);
    }
    @Override public void changedUpdate(    DocumentEvent arg0){
      if (jtfCollectionName.getText().isEmpty() && jchkbMakeCollection.isSelected()) {
        jbCreate.setEnabled(false);
      }
 else       jbCreate.setEnabled(true);
    }
  }
);
  jlSatChoices=new JList(lmSatChoices);
  jlSatChoices.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
  jlSatChoices.setCellRenderer(new TLEListRenderer());
  jscrlpSatChoices=new JScrollPane(jlSatChoices);
  jlSatChosen=new JList(lmSatChosen);
  jlSatChosen.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
  jlSatChosen.setCellRenderer(new TLEListRenderer());
  jscrlpSatChosen=new JScrollPane(jlSatChosen);
  headPanel.add(lblChooseSat);
  headPanel.add(Box.createRigidArea(new Dimension(20,0)));
  headPanel.add(jcbSatCategories);
  headPanel.add(Box.createRigidArea(new Dimension(200,0)));
  satChoicePanel.add(lblChoiceSat);
  lblChoiceSat.setAlignmentX(Component.CENTER_ALIGNMENT);
  satChoicePanel.add(Box.createRigidArea(new Dimension(0,5)));
  satChoicePanel.add(jscrlpSatChoices);
  satChoicePanel.setMinimumSize(new Dimension(250,300));
  satChoicePanel.setPreferredSize(new Dimension(250,300));
  satChoicePanel.setMaximumSize(new Dimension(Short.MAX_VALUE,Short.MAX_VALUE));
  addBtnsPanel.add(jbAddSat,cAdd);
  cAdd.gridx++;
  cAdd.insets=new Insets(5,0,0,0);
  addBtnsPanel.add(jbAddAllSat,cAdd);
  SatChosenPanel.add(lblChosenSat);
  lblChosenSat.setAlignmentX(Component.CENTER_ALIGNMENT);
  SatChosenPanel.add(Box.createRigidArea(new Dimension(0,5)));
  SatChosenPanel.add(jscrlpSatChosen);
  SatChosenPanel.setMinimumSize(new Dimension(250,300));
  SatChosenPanel.setPreferredSize(new Dimension(250,300));
  SatChosenPanel.setMaximumSize(new Dimension(Short.MAX_VALUE,Short.MAX_VALUE));
  removeBtnsPanel.add(jbRemoveSat,cRemove);
  cRemove.gridx++;
  cRemove.insets=new Insets(5,0,0,0);
  removeBtnsPanel.add(jbRemoveAllSat,cRemove);
  bodyPanel.add(satChoicePanel);
  bodyPanel.add(Box.createRigidArea(new Dimension(20,0)));
  bodyPanel.add(addBtnsPanel);
  bodyPanel.add(Box.createRigidArea(new Dimension(20,0)));
  bodyPanel.add(SatChosenPanel);
  bodyPanel.add(Box.createRigidArea(new Dimension(20,0)));
  bodyPanel.add(removeBtnsPanel);
  makeCollectionPanel.add(jchkbMakeCollection);
  jchkbMakeCollection.setAlignmentX(Component.LEFT_ALIGNMENT);
  nameCollectionPanel.add(lblCollectionName);
  nameCollectionPanel.add(jtfCollectionName);
  nameCollectionPanel.setAlignmentX(Component.LEFT_ALIGNMENT);
  makeCollectionPanel.add(nameCollectionPanel);
  footPanel.add(makeCollectionPanel,BorderLayout.EAST);
  motherPanel.add(headPanel);
  motherPanel.add(Box.createRigidArea(new Dimension(0,10)));
  motherPanel.add(bodyPanel);
  motherPanel.add(footPanel);
  rootPanel.add(motherPanel,Component.CENTER_ALIGNMENT);
  return rootPanel;
}

Fixed version (ground truth):
@Override public JComponent getUI(final JButton jbCreate){
  tleUtil=new TLEUtility();
  chosenSats=new HashSet<String>();
  lmSatChoices=new DefaultListModel();
  lmSatChosen=new DefaultListModel();
  jbAddSat=new JButton("String_Node_Str");
  jbAddAllSat=new JButton("String_Node_Str");
  jbRemoveSat=new JButton("String_Node_Str");
  jbRemoveAllSat=new JButton("String_Node_Str");
  lblChooseSat=new JLabel("String_Node_Str");
  lblChoiceSat=new JLabel("String_Node_Str");
  lblChosenSat=new JLabel("String_Node_Str");
  lblCollectionName=new JLabel("String_Node_Str");
  jchkbMakeCollection=new JCheckBox("String_Node_Str");
  jtfCollectionName=new JTextField("String_Node_Str",TEXT_FIELD_COL_SIZE);
  jbAddSat.setEnabled(false);
  jbAddAllSat.setEnabled(false);
  jbRemoveSat.setEnabled(false);
  jbRemoveAllSat.setEnabled(false);
  jbCreate.setEnabled(false);
  jchkbMakeCollection.setSelected(true);
  jchkbMakeCollection.setEnabled(true);
  jtfCollectionName.setEnabled(true);
  lblCollectionName.setEnabled(true);
  jtfCollectionName.setText(DEFAULT_COLLECTION_NAME);
  jtfCollectionName.selectAll();
  JPanel rootPanel=new JPanel();
  rootPanel.setLayout(new FlowLayout());
  JPanel motherPanel=new JPanel();
  motherPanel.setLayout(new BoxLayout(motherPanel,BoxLayout.Y_AXIS));
  JPanel headPanel=new JPanel();
  headPanel.setLayout(new BoxLayout(headPanel,BoxLayout.LINE_AXIS));
  JPanel bodyPanel=new JPanel();
  bodyPanel.setLayout(new BoxLayout(bodyPanel,BoxLayout.LINE_AXIS));
  JPanel footPanel=new JPanel();
  footPanel.setLayout(new BorderLayout());
  JPanel satChoicePanel=new JPanel();
  satChoicePanel.setLayout(new BoxLayout(satChoicePanel,BoxLayout.Y_AXIS));
  JPanel SatChosenPanel=new JPanel();
  SatChosenPanel.setLayout(new BoxLayout(SatChosenPanel,BoxLayout.Y_AXIS));
  JPanel addBtnsPanel=new JPanel();
  addBtnsPanel.setLayout(new GridBagLayout());
  JPanel removeBtnsPanel=new JPanel();
  removeBtnsPanel.setLayout(new GridBagLayout());
  JPanel makeCollectionPanel=new JPanel();
  makeCollectionPanel.setLayout(new BoxLayout(makeCollectionPanel,BoxLayout.Y_AXIS));
  JPanel nameCollectionPanel=new JPanel();
  nameCollectionPanel.setLayout(new BoxLayout(nameCollectionPanel,BoxLayout.X_AXIS));
  GridBagConstraints cAdd=new GridBagConstraints();
  cAdd.fill=GridBagConstraints.BOTH;
  cAdd.weightx=1.0;
  GridBagConstraints cRemove=new GridBagConstraints();
  cRemove.fill=GridBagConstraints.BOTH;
  cRemove.weightx=1.0;
  List<Object> jcbElements=new ArrayList<Object>();
  for (int i=0; i < SatCat.length; i++) {
    jcbElements.add(new ComboItem(SatCat[i][0],false));
    for (int j=1; j < SatCat[i].length; j++) {
      jcbElements.add(new ComboItem(SatCat[i][j],true));
    }
  }
  jcbSatCategories=new JComboBox(jcbElements.toArray());
  jcbSatCategories.setBackground(Color.WHITE);
  jcbSatCategories.setRenderer(new ComboRenderer());
  jcbSatCategories.addActionListener(new ComboListener(jcbSatCategories));
  jcbSatCategories.addActionListener(new ActionListener(){
    public void actionPerformed(    ActionEvent le){
      if (((ComboItem)jcbSatCategories.getSelectedItem()).isEnabled() == true) {
        lmSatChoices.clear();
        final String choice=jcbSatCategories.getSelectedItem().toString();
        if (storedSatCats.containsKey(choice)) {
          populate(storedSatCats.get(choice));
        }
 else {
          new SwingWorker<List<TLE>,Object>(){
            @Override protected List<TLE> doInBackground() throws Exception {
              return tleUtil.getTLEs(choice);
            }
            @Override protected void done(){
              try {
                storedSatCats.put(choice,get());
                populate(storedSatCats.get(choice));
              }
 catch (              InterruptedException e) {
                populate(Collections.<TLE>emptyList());
              }
catch (              ExecutionException e) {
                populate(Collections.<TLE>emptyList());
              }
            }
          }
.execute();
        }
      }
    }
    private void populate(    List<TLE> userSatChoices){
      for (int i=0; i < userSatChoices.size(); i++)       lmSatChoices.addElement(userSatChoices.get(i));
      jbAddSat.setEnabled(true);
      jbAddAllSat.setEnabled(true);
      jlSatChoices.requestFocusInWindow();
      jlSatChoices.setSelectedIndex(0);
    }
  }
);
  jbAddSat.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent ae){
      int selected[]=jlSatChoices.getSelectedIndices();
      int len=selected.length;
      if (len == 0) {
        return;
      }
      jbRemoveSat.setEnabled(true);
      jbRemoveAllSat.setEnabled(true);
      jchkbMakeCollection.setEnabled(true);
      jbCreate.setEnabled(true);
      for (int i=0; i < len; i++) {
        Object chosen=lmSatChoices.get(selected[i]);
        if (!satAlreadyAdded((TLE)chosen)) {
          addToChosen((TLE)chosen);
          lmSatChosen.addElement(chosen);
        }
      }
      for (int i=0; i < len; i++)       lmSatChoices.remove(selected[len - 1 - i]);
      if (lmSatChoices.isEmpty()) {
        jbAddSat.setEnabled(false);
        jbAddAllSat.setEnabled(false);
      }
 else       jlSatChoices.setSelectedIndex(0);
    }
  }
);
  jbAddAllSat.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      int size=lmSatChoices.getSize();
      for (int i=0; i < size; i++) {
        if (!satAlreadyAdded((TLE)lmSatChoices.get(0))) {
          addToChosen((TLE)lmSatChoices.get(0));
          lmSatChosen.addElement(lmSatChoices.get(0));
        }
        lmSatChoices.remove(0);
      }
      jbAddSat.setEnabled(false);
      jbAddAllSat.setEnabled(false);
      jbRemoveSat.setEnabled(true);
      jbRemoveAllSat.setEnabled(true);
      jchkbMakeCollection.setEnabled(true);
      jbCreate.setEnabled(true);
    }
  }
);
  jbRemoveSat.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      int selected[]=jlSatChosen.getSelectedIndices();
      if (selected.length == 0)       return;
      for (int i=0; i < selected.length; i++) {
        removeFromChosen((TLE)lmSatChosen.get(selected[selected.length - 1 - i]));
        lmSatChosen.remove(selected[selected.length - 1 - i]);
      }
      if (lmSatChosen.isEmpty()) {
        jbRemoveSat.setEnabled(false);
        jbRemoveAllSat.setEnabled(false);
        jchkbMakeCollection.setEnabled(false);
        jbCreate.setEnabled(false);
        jcbSatCategories.requestFocus();
      }
 else       jlSatChosen.setSelectedIndex(0);
    }
  }
);
  jbRemoveAllSat.addActionListener(new ActionListener(){
    @Override public void actionPerformed(    ActionEvent e){
      lmSatChosen.clear();
      chosenSats.clear();
      jbRemoveSat.setEnabled(false);
      jbRemoveAllSat.setEnabled(false);
      jchkbMakeCollection.setEnabled(false);
      jbCreate.setEnabled(false);
    }
  }
);
  jchkbMakeCollection.addItemListener(new ItemListener(){
    @Override public void itemStateChanged(    ItemEvent e){
      if (e.getStateChange() == ItemEvent.SELECTED) {
        lblCollectionName.setEnabled(true);
        jtfCollectionName.setEnabled(true);
        jtfCollectionName.requestFocusInWindow();
        jtfCollectionName.setText(DEFAULT_COLLECTION_NAME);
        jtfCollectionName.selectAll();
      }
 else {
        lblCollectionName.setEnabled(false);
        jtfCollectionName.setText("String_Node_Str");
        jtfCollectionName.setEnabled(false);
      }
    }
  }
);
  jtfCollectionName.getDocument().addDocumentListener(new DocumentListener(){
    @Override public void removeUpdate(    DocumentEvent e){
      if (jtfCollectionName.getText().isEmpty() && jchkbMakeCollection.isSelected())       jbCreate.setEnabled(false);
 else       jbCreate.setEnabled(true);
    }
    @Override public void insertUpdate(    DocumentEvent e){
      jbCreate.setEnabled(true);
    }
    @Override public void changedUpdate(    DocumentEvent arg0){
      if (jtfCollectionName.getText().isEmpty() && jchkbMakeCollection.isSelected()) {
        jbCreate.setEnabled(false);
      }
 else       jbCreate.setEnabled(true);
    }
  }
);
  jlSatChoices=new JList(lmSatChoices);
  jlSatChoices.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
  jlSatChoices.setCellRenderer(new TLEListRenderer());
  jscrlpSatChoices=new JScrollPane(jlSatChoices);
  jlSatChosen=new JList(lmSatChosen);
  jlSatChosen.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
  jlSatChosen.setCellRenderer(new TLEListRenderer());
  jscrlpSatChosen=new JScrollPane(jlSatChosen);
  headPanel.add(lblChooseSat);
  headPanel.add(Box.createRigidArea(new Dimension(20,0)));
  headPanel.add(jcbSatCategories);
  headPanel.add(Box.createRigidArea(new Dimension(200,0)));
  satChoicePanel.add(lblChoiceSat);
  lblChoiceSat.setAlignmentX(Component.CENTER_ALIGNMENT);
  satChoicePanel.add(Box.createRigidArea(new Dimension(0,5)));
  satChoicePanel.add(jscrlpSatChoices);
  satChoicePanel.setMinimumSize(new Dimension(250,300));
  satChoicePanel.setPreferredSize(new Dimension(250,300));
  satChoicePanel.setMaximumSize(new Dimension(Short.MAX_VALUE,Short.MAX_VALUE));
  addBtnsPanel.add(jbAddSat,cAdd);
  cAdd.gridx++;
  cAdd.insets=new Insets(5,0,0,0);
  addBtnsPanel.add(jbAddAllSat,cAdd);
  SatChosenPanel.add(lblChosenSat);
  lblChosenSat.setAlignmentX(Component.CENTER_ALIGNMENT);
  SatChosenPanel.add(Box.createRigidArea(new Dimension(0,5)));
  SatChosenPanel.add(jscrlpSatChosen);
  SatChosenPanel.setMinimumSize(new Dimension(250,300));
  SatChosenPanel.setPreferredSize(new Dimension(250,300));
  SatChosenPanel.setMaximumSize(new Dimension(Short.MAX_VALUE,Short.MAX_VALUE));
  removeBtnsPanel.add(jbRemoveSat,cRemove);
  cRemove.gridx++;
  cRemove.insets=new Insets(5,0,0,0);
  removeBtnsPanel.add(jbRemoveAllSat,cRemove);
  bodyPanel.add(satChoicePanel);
  bodyPanel.add(Box.createRigidArea(new Dimension(20,0)));
  bodyPanel.add(addBtnsPanel);
  bodyPanel.add(Box.createRigidArea(new Dimension(20,0)));
  bodyPanel.add(SatChosenPanel);
  bodyPanel.add(Box.createRigidArea(new Dimension(20,0)));
  bodyPanel.add(removeBtnsPanel);
  makeCollectionPanel.add(jchkbMakeCollection);
  jchkbMakeCollection.setAlignmentX(Component.LEFT_ALIGNMENT);
  nameCollectionPanel.add(lblCollectionName);
  nameCollectionPanel.add(jtfCollectionName);
  nameCollectionPanel.setAlignmentX(Component.LEFT_ALIGNMENT);
  makeCollectionPanel.add(nameCollectionPanel);
  footPanel.add(makeCollectionPanel,BorderLayout.EAST);
  motherPanel.add(headPanel);
  motherPanel.add(Box.createRigidArea(new Dimension(0,10)));
  motherPanel.add(bodyPanel);
  motherPanel.add(footPanel);
  rootPanel.add(motherPanel,Component.CENTER_ALIGNMENT);
  return rootPanel;
}