Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Resizing w/ INI file
Resizing w/ INI file [message #436409] Tue, 18 May 2004 20:28 Go to next message
Eclipse UserFriend
Originally posted by: am560571.wcupa.edu

I have a sash form and inside this sash form I have 1 treeview and 1 table
view. I created an ini file so that it can remeber how the user wants the
application to look. The file reads and writes fine but I have a problem
where I lose the silderbar. I tried ussing the pack() methode but that
resests the methods.

I have the following methods being called in this order. The variables
are created when I read in the ini file

getShell().setLocation(lx, ly);
getShell().setSize(shellx, shelly);
treef.setLocation(folx, foly);
tabelf.setLocation(filex, filey);
treef.setSize(y, x);
tablef.setSize(y1, x1);

I tired adding a getShell().pack(). I also tried using the redrawl and
update methods. I also tried the sash_form.layout(true); All didn't
work. So I am wondering what method I need so that I can get the
silderbar in between the tree and the table. I am new to java and only
been ussing SWT for like 1 week so any help in greatly apperiated...I
tried looking on the internet for the resizing widgets and thats why I
tried using some of those methods.

Later,
Whatsgoingon
Re: Resizing w/ INI file [message #436451 is a reply to message #436409] Tue, 18 May 2004 20:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: am560571.wcupa.edu

OK I think it has something to do with the invalidate method but I think
that is only available with AWT so is there something like this in SWT of
there is I will try it and get back here.

Later,
whatsgoingon
Re: Resizing w/ INI file [message #436470 is a reply to message #436451] Wed, 19 May 2004 09:34 Go to previous messageGo to next message
Robert Bacs is currently offline Robert BacsFriend
Messages: 165
Registered: July 2009
Senior Member
Hi,

Try to use methods getWeights() and setWeights() loacted in SashForm class.

Boby

"whatsgoingon" <am560571@wcupa.edu> wrote in message
news:c8dsq0$eds$1@eclipse.org...
> OK I think it has something to do with the invalidate method but I think
> that is only available with AWT so is there something like this in SWT of
> there is I will try it and get back here.
>
> Later,
> whatsgoingon
>
Re: Resizing w/ INI file [message #436621 is a reply to message #436470] Thu, 20 May 2004 12:16 Go to previous message
Eclipse UserFriend
Originally posted by: am560571.wcupa.edu

Thanks that worked GREAT!

Aaron

Robert Bacs wrote:

> Hi,

> Try to use methods getWeights() and setWeights() loacted in SashForm class.

> Boby

> "whatsgoingon" <am560571@wcupa.edu> wrote in message
> news:c8dsq0$eds$1@eclipse.org...
> > OK I think it has something to do with the invalidate method but I think
> > that is only available with AWT so is there something like this in SWT of
> > there is I will try it and get back here.
> >
> > Later,
> > whatsgoingon
> >
Previous Topic:howto report bugs?
Next Topic:getChildren with non visiable components
Goto Forum:
  


Current Time: Fri Apr 19 11:50:30 GMT 2024

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

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

Back to the top