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;
}
}
});

6 comments:
It doesn't work.
My rows remain selected...
Are you sure?
It works!! Thanks a lot !:)
The World Leading wow power leveling and wow gold wow power leveling
I was trying to do this for a long because there's many users in my blog that just post bad things on it.
does not work in unix. Any other way to accomplish this?
It works on linux! Bless u! :)
Post a Comment