lcaron / opal

Main repository for the Opal Project (SWT new widgets library)
50 stars 32 forks source link

PWCheckbox #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
how can I set selected by default PWCheckbox?

Original issue reported on code.google.com by betoando...@gmail.com on 19 Jul 2014 at 9:22

GoogleCodeExporter commented 9 years ago
Simply set the value to TRUE. For instance :
Initialize the value to true :
data.put("cb1", new Boolean(true));

Create the checkbox:
final PWTab infoTab = window.addTab(new Image(...), "Info");
infoTab.add(new PWLabel("Checkboxes, Slider,Spinner, Color chooser, Font 
chooser"));
infoTab.add(new PWCheckbox("Checkbox 1", "cb1"));

=> Checkbox1 is selected

Original comment by laurent....@gmail.com on 20 Jul 2014 at 8:14

GoogleCodeExporter commented 9 years ago
Thank you very much!

Original comment by betoando...@gmail.com on 21 Jul 2014 at 4:33