public static CheckBox createToggle(String text,Image icon){
  CheckBox cb=new CheckBox(text,icon);
  cb.setToggle(true);
  return cb;
}

public static CheckBox createToggle ( String text , Image icon ) { CheckBox cb = new CheckBox ( text , icon ) ; cb . setToggle ( true ) ; return cb ; }
shorthand for creating the check box setting the icon / text and making it into a toggle button
