Table column size [message #448090] |
Fri, 31 December 2004 02:56 |
Eclipse User |
|
|
|
Originally posted by: nay0648.163.com
Hello every one!
I have a table like this:
....
table=new Table(parent,SWT.BORDER|SWT.SINGLE|SWT.H_SCROLL|SWT.V_SCROLL );
table.setHeaderVisible(true);
TableColumn keycol=new TableColumn(table,SWT.LEFT);
keycol.setText("KEY");
TableColumn keyval=new TableColumn(table,SWT.LEFT);
keyval.setText("VALUE");
....
but the two table column are not the same size.Anyone can tell me how can
I make them to the same size,even when the table resized?
|
|
|
Re: Table column size [message #448107 is a reply to message #448090] |
Mon, 03 January 2005 07:36 |
Eclipse User |
|
|
|
Originally posted by: melko.gmx.at
nay0648 wrote:
> Hello every one!
> I have a table like this:
> ....
> table=new Table(parent,SWT.BORDER|SWT.SINGLE|SWT.H_SCROLL|SWT.V_SCROLL );
> table.setHeaderVisible(true);
> TableColumn keycol=new TableColumn(table,SWT.LEFT);
> keycol.setText("KEY");
> TableColumn keyval=new TableColumn(table,SWT.LEFT);
> keyval.setText("VALUE");
> ....
> but the two table column are not the same size.Anyone can tell me how can
> I make them to the same size,even when the table resized?
Set the same column width with keycol.setWidth(30); keyval.setWidth(30);
!!! But if this work on resize, I don't know, you must try!
happy new year!
|
|
|
Powered by
FUDForum. Page generated in 0.03150 seconds