[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: How wo display a TableColumn in Table?
|
SonicLee wrote:
Hi everybody!
I want to use a Table instance to display some information,but i don't
know how to use it.
These are my codes:
Table table = new Table(composite,SWT.NONE);
table.setBounds(20,20,100,100);
TableColumn column = new TableColumn(table,SWT.NONE);
column.setText("test");
Try this:
composite.setLayout(new Fillayout());
Table table = new Table(composite,SWT.NONE);
table.setBounds(20,20,100,100);
TableColumn column = new TableColumn(table,SWT.NONE);
column.setText("test");
column.pack();