Is there a bug using setSelected in GCheckbox ? When I use it the checkbox disappear.
Edit: If I click the place where the GCheckbox was at - it reappears.
Edit2: adding
button.setSelected(true);
button.setSelected(false);
Before the real setSelected also fixes everything :-)