The first column is too wide [message #441682] |
Thu, 19 August 2004 17:57 |
Eclipse User |
|
|
|
Originally posted by: andrej.litowka.impulsus.de
Hi All,
I try to adjust a column wide in a table to a column name:
for (int j = 1; j <= columnCnt; j++) {
TableColumn column = new TableColumn(resTable, SWT.RIGHT);
column.pack();
column.setText(...);
}
It works, but the first column is too wide. It looks like this:
|column1 |column2|another_column|one_more_column|
|17 | 329| 234| 45|
Can anybody tell me what do I wrong?
Thanks.
With best regards,
Andrej.
|
|
|
|
|
Re: The first column is too wide [message #441769 is a reply to message #441688] |
Tue, 24 August 2004 16:45 |
Eclipse User |
|
|
|
Originally posted by: andrej.litowka.impulsus.de
Hi Benjamin!
Thank you for your answer. I tried to call pack() after setText(). It
didn't hel me. The column is even though to wide.
Benjamin Pasero wrote:
> Should'nt pack() be called after text has been set to the Column via
> setText()?
> > Please check if this https://bugs.eclipse.org/bugs/show_bug.cgi?id=45429
> > or this https://bugs.eclipse.org/bugs/show_bug.cgi?id=25525 apply.
> > Ciao,
> > Simone Gianni
> > Andrej Litovka wrote:
> > > Hi All,
> > >
> > > I try to adjust a column wide in a table to a column name:
> > >
> > > for (int j = 1; j <= columnCnt; j++) {
> > > TableColumn column = new TableColumn(resTable, SWT.RIGHT);
> > > column.pack();
> > > column.setText(...);
> > > }
> > >
> > > It works, but the first column is too wide. It looks like this:
> > >
> > > |column1 |column2|another_column|one_more_column|
> > > |17 | 329| 234| 45|
> > >
> > > Can anybody tell me what do I wrong?
> > >
> > > Thanks.
> > > With best regards,
> > > Andrej.
> > >
|
|
|
Powered by
FUDForum. Page generated in 0.02280 seconds