"redraw()" cannot update the display [message #460596] |
Thu, 01 September 2005 01:46 |
Eclipse User |
|
|
|
Originally posted by: murley.murley.murley
Hello,
I have 2 composite in my UI. Left hand side is a button, while the right
hand side is a label.
My idea is when user click the button, the label in right hand side will
be disposed and create a Text. The problem is that when i click the button,
right hand side do not change UNTIL i minimize and maximize my application.
I was already call redraw() method, but do not success. Do anyone have any
idea?
Thanks for help~
|
|
|
Re: "redraw()" cannot update the display [message #460600 is a reply to message #460596] |
Thu, 01 September 2005 04:09 |
Eclipse User |
|
|
|
Originally posted by: sunil_kamath.nohotspammail.com
"murley" <murley@murley.murley> wrote in message
news:df5mhs$poq$1@news.eclipse.org...
> Hello,
> I have 2 composite in my UI. Left hand side is a button, while the right
> hand side is a label.
> My idea is when user click the button, the label in right hand side will
> be disposed and create a Text. The problem is that when i click the
> button, right hand side do not change UNTIL i minimize and maximize my
> application.
>
> I was already call redraw() method, but do not success. Do anyone have
> any idea?
> Thanks for help~
Call layout() on the RH composite after the dispose/create.
---
Sunil
|
|
|
|
Re: "redraw()" cannot update the display [message #460613 is a reply to message #460606] |
Thu, 01 September 2005 14:04 |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
redraw simply says repaint what's there. layout says to size and
position the children. Just creating a child doesn't size and position
it. It is at (0,0) with size (0,0). Layout will take the current layout
manager and size and position the children, including the new child.
murley wrote:
> thanks, it works
> but what the difference between redraw() and layout()..
>
>
--
Thanks,
Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 3.01009 seconds