static JCheckBox jCenteredCheckBox() { ret centerCheckBox(new JCheckBox()); } static JCheckBox jCenteredCheckBox(bool checked) { ret centerCheckBox(new JCheckBox("", checked)); } static JCheckBox jCenteredCheckBox(S text, bool checked) { ret centerCheckBox(new JCheckBox(text, checked)); } static JCheckBox jCenteredCheckBox(S text) { ret centerCheckBox(new JCheckBox(text)); } static JCheckBox jCenteredCheckBox(S text, bool checked, fO onChange) { ret centerCheckBox(jCheckBox(text, checked, onChange)); } // onChange can be a Runnable or a voidfunc(bool) static JCheckBox jCenteredCheckBox(bool checked, fO onChange) { ret centerCheckBox(jCheckBox(checked, onChange); }