This, however, can be easily achieved by masking the selection event, Just use the following piece of code for creating your tables:
final Table table = new Table(group, SWT.SINGLE | SWT.BORDER);
table.addListener(SWT.EraseItem, new Listener() {
public void handleEvent(Event event) {
if((event.detail & SWT.SELECTED) != 0 ){
event.detail &= ~SWT.SELECTED;
}
}
});
7 comments:
It doesn't work.
My rows remain selected...
Are you sure?
It works!! Thanks a lot !:)
does not work in unix. Any other way to accomplish this?
It works on linux! Bless u! :)
Wooow! I did a search on the topic and found many people will agree with your blog. Thank you for all that you do..
not working in mac os
please suggest if anything for mac
Post a Comment