Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Jface table
Jface table [message #260685] Thu, 10 July 2008 20:05 Go to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi All,

I am creating a table and displaying it through a table viewer.
What i am able to achieve is, its showing the number of rows which
corresponds to my model.But suppose i want to have 5 rows intially
for the table then if my model has one row,then show one row and 4 rows
empty.
If 6 rows get the scroll bar.I want to know how to set the intial size.


Re: Jface table [message #260697 is a reply to message #260685] Fri, 11 July 2008 09:02 Go to previous message
Eclipse UserFriend
Originally posted by: annamalai.ancitconsulting.com

Dear Saurav

I suppose your query is .. How do i manipulate the size of the table ... you
want to fix the size of the table to 5 records and 6th record to be shown
with a scroll bar.
Probably if you are applying gridLayout you should look at using GridData
and control the size of your table ...using heightHint.

Hope that helps.

Regards
Malai
"saurav" <saurav.sarkar1@gmail.com> wrote in message
news:1206654d6334a8c620fd3a9cd5f2b84b$1@www.eclipse.org...
> Hi All,
>
> I am creating a table and displaying it through a table viewer.
> What i am able to achieve is, its showing the number of rows which
> corresponds to my model.But suppose i want to have 5 rows intially
> for the table then if my model has one row,then show one row and 4 rows
> empty.
> If 6 rows get the scroll bar.I want to know how to set the intial size.
>
Previous Topic:Set Tab Size
Next Topic:Create GUI
Goto Forum:
  


Current Time: Sun Oct 06 16:21:25 GMT 2024

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

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

Back to the top