I have this code which prints the data from the column in the table but how can i get the value of another columns ( I have 3 columns) but it only prints the 1st column?
This is my code:
Table table = (Table) e.widget;
if( e.detail == SWT.CHECK ) {
System.out.println(e.item);
if( table.indexOf( ( TableItem )e.item ) == table.getSelectionIndex() ) {
TableItem ti = ( TableItem )e.item;
ti.setChecked( !ti.getChecked() );
}
} else {
TableItem ti = ( TableItem )e.item;
ti.setChecked( !ti.getChecked() );
}
PS: i got the code here from stackoverflow
Aucun commentaire:
Enregistrer un commentaire