Code example for Set

Methods: size, toArray

0
 
    setFocusable(false); 
  } 
 
  public String[] getChecked() {
    String[] result = new String[checkedNames.size()];
 
    result = checkedNames.toArray(result);
 
    return result;
  } 
 
  public void setChecked(String[] checked) {
    checkedNames.clear();
    for (String s : checked)
      checkedNames.add(s);
 
    updateShownNames(); 
  } 
 
  void setShowCheckmarks(boolean showCheckmarks) {