Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TableViewer with ControlListener
TableViewer with ControlListener [message #459574] Thu, 11 August 2005 13:02
Eclipse UserFriend
Originally posted by:

Hi all,

is it possible to use Snippet 77 (ControlListener resizing columns
of a Table) with a table being displayed by a TableViewer?
The table usually does not display properly. Sometimes the horizontal bar
where column names reside is drawn and an empty background.
(I've seen this behaviour when I tried to resize the table under its
preferred size) If ControlListener is not a suitable solution, are there
any other ways to resize columns in TableViewer?
I'm running 3.0.2 on Linux/GTK.

Example code:

TableViewer viewer = new TableViewer(parent,style);
viewer.getTable().addControlListener(new ControlListener() {
public void controlResized(ControlEvent e) {
* Snippet77 resize code here

Thank you for suggestions,
Previous Topic:Are colors really resources?
Next Topic:FormLayout problem, using relative sizes
Goto Forum:

Current Time: Sat Apr 17 00:33:53 GMT 2021

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

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

Back to the top