Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Table column size
Table column size [message #448090] Fri, 31 December 2004 02:56 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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!
Previous Topic:Is there Frame in SWT?
Next Topic:Widget not being displayed
Goto Forum:
  


Current Time: Sun Oct 25 05:28:02 GMT 2020

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

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

Back to the top