Tuesday, April 21, 2009

Code for selecting/de-selecting the main checkboxes in the tree SWT

Below is a small snippet of code for selecting/de-selecting the main parent checkboxes in the tree

TreeItem[] itm = tree.getItems();
for(int i =0; i <>
//selecting parent items
itm[i].setChecked(true); //use false for de-selecting
}

No comments:

Post a Comment