static public JCheckBox createJCheckBoxForTable(boolean selected){
  JCheckBox checkBox=new JCheckBox();
  checkBox.setOpaque(true);
  checkBox.setHorizontalAlignment(SwingConstants.CENTER);
  checkBox.setForeground(TABLE_COMPONENT_FG_COLOR);
  checkBox.setBackground(TABLE_COMPONENT_BG_COLOR);
  checkBox.setSelected(selected);
  return checkBox;
}

static public JCheckBox createJCheckBoxForTable ( boolean selected ) { JCheckBox checkBox = new JCheckBox ( ) ; checkBox . setOpaque ( true ) ; checkBox . setHorizontalAlignment ( SwingConstants . CENTER ) ; checkBox . setForeground ( TABLE_COMPONENT_FG_COLOR ) ; checkBox . setBackground ( TABLE_COMPONENT_BG_COLOR ) ; checkBox . setSelected ( selected ) ; return checkBox ; }
it creates a new check box for inclusion in a table and sets its " is selected " attribute to the given value .
