Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » CheckBox button in a TableColumn
CheckBox button in a TableColumn [message #639630] Wed, 17 November 2010 09:47
Sunny is currently offline SunnyFriend
Messages: 6
Registered: May 2010
Junior Member
Hi,

I am new in SWT. I have a Table with 6 Columns and I would like to define the last column as a checkbox buttons. How can I do this in the column definition?.

With a TableEditor and a TableItem I should give the number of Rows what I would not give.

I am using this :

Quote:

viewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL|SWT.FULL_SELECTION);
viewer.setUseHashlookup(true);
Table table = viewer.getTable();

col1 = new TableColumn(table, SWT.NONE);
col1.setWidth(30);
col1.setMoveable(true);
col1.addSelectionListener(sortListener);

...
// Here I would like to define this Column as checkbox one.
col6 = new TableColumn(table, SWT.NONE);
col6.setWidth(30);
col6.setText(Messages.DokumenteView_Apex);
col6.setMoveable(true);
col6.addSelectionListener(sortListener);

table.setHeaderVisible(true);
table.setLinesVisible(true);




Thanks
Previous Topic:problem with table viewer comparator
Next Topic:Re: SWT control preferred, minimum and maximum sizes
Goto Forum:
  


Current Time: Sat Dec 14 10:12:43 GMT 2019

Powered by FUDForum. Page generated in 0.02415 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top