• Post Reply Bookmark Topic Watch Topic
  • New Topic

Selecting entire column  RSS feed

anu anand
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a table. I want to select a column header and list all the values in that column. Is there any way in SWT that this can be done? TableColumn of SWT does not provide any such method to get values in a paricular column?

When I select a column...can i get to know at which index is it?

code :
for(int i=0;i {
table.getColumn(i).addSelectionListener(new SelectionAdapter()
public void widgetSelected(SelectionEvent e)
TableColumn tc = (TableColumn)e.widget;
//how to get all values in this column?
//how to get at which index is the column selected?

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!