This week's book giveaway is in the Security forum.
We're giving away four copies of Penetration Testing Basics and have Ric Messier on-line!
See this thread for details.
Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Selecting entire column

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?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic