"redraw()" cannot update the display [message #460596] |
Wed, 31 August 2005 21: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 #460613 is a reply to message #460606] |
Thu, 01 September 2005 10: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 0.03769 seconds