[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?

You need to either setWidth() or pack() your column to give it a width.

There are a collection of example Table snippets under the header "Table,
TableItem, TableColumn" at:
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/dev.html#snippets .
In particular, an example of putting controls into a Table is:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet126.java?rev=HEAD&content-type=text/vnd.viewcvs-markup

Grant

"SonicLee" <soniclee@xxxxxxxx> wrote in message
news:0fd78b06b15c33d7059c993bf39d5dbe$1@xxxxxxxxxxxxxxxxxx
> Sorry about my mistake clicking the post button.
> I run the codes above and a blank appears in the page,but there is no
> TableColumn.
> Then what's the problem of my codes?
>
> By the way: can i let a tablecolumn display with Combo or Checkbox?
>
> Thanks a lot!
>