Weird problems resizing Shell with 'setBounds()' [message #461490] |
Mon, 26 September 2005 15:24 |
Eclipse User |
|
|
|
Originally posted by: rdgod.hotmail.com
Greetings,
I created a WindowManager that has a function that iterates through every
Window, resizes their Shell, and then relocates them (on the default
display screen) using 'setBounds()'. I then created an Action that
executes that function. The problem I'm experiencing with 'setBounds()'
is that the Shell is resized correctly but the location is incorrect.
I began adding "sleep" code in order to try and isolate the problem. What
I found is that when 'setBounds()' is executed, the frame is moved WITHOUT
resizing the Shell. Since the Shell hasn't been resized, it will only be
moved as far as its "size" will allow (without exceeding the boundaries of
the display). Only when the Action is complete will the Shell finally be
resized. Thus, even though the Shell is the proper size, its location is
incorrect.
Does anyone have any ideas? (Basically, I'm trying to create a tiling
function.)
Thanks.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04323 seconds