public CheckBoxList() {
    setCellRenderer(new CellRenderer());
    // A mouse listener for when the mouse clicks a checkbox
    addMouseListener(new MouseAdapter() {
      public void mousePressed(MouseEvent e) {
        // Get index of box clicked.
        int index = locationToIndex(e.getPoint());
        if (index != -1) {
          JCheckBox checkbox = (JCheckBox) getModel().getElementAt(index);
          // For all checkboxes other than Screen1 toggle. Screen1 is not selectable since
          // Screen1 from the main project is automatically merged.
          if (!checkbox.getText().equals("Screen1")) {
            checkbox.setSelected(!checkbox.isSelected());
            if (checkbox.isEnabled() && !checked.contains(checkbox.getText())) {
              checked.add(checkbox.getText());
            } else if (checked.contains(checkbox.getText())) {
              checked.remove(checkbox.getText());
            }
          }
          repaint();
        }
      }
    });
    setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
  }