svoid setSelected(AbstractButton btn, bool selected) { if (btn != null) swing { btn.setSelected(selected); } }