fixed swing performance issue with checkboxes and radiobuttons

reduced layout time for checkbox and radiobutton from 68ms to 1ms