layout manager troubles [message #172162] |
Wed, 16 March 2005 20:57 |
Eclipse User |
|
|
|
Originally posted by: jojo.virtutech.com
Hi,
I'm trying to implement my own layout manager for a very specialized
situation. Things work nicely all the way to the point where I do
child.setBounds(newBounds);
on each of the figure's children in the layout() method. I would have
expected that would be all there would be to it, but nothing happens --
none of the children become visible on the screen. I've tried to step
through the setBounds() method, but I can't find anything obviously
wrong; the setBounds() ends up in queuing a dirty-region which seems
reasonable enough.
If anybody has a clue as to what I've forgotten, I'd appreciate the help.
/Jesper
|
|
|
Re: layout manager troubles [message #172170 is a reply to message #172162] |
Wed, 16 March 2005 21:16 |
Eclipse User |
|
|
|
Originally posted by: jojo.virtutech.com
Jesper Eskilson wrote:
> Hi,
>
> I'm trying to implement my own layout manager for a very specialized
> situation. Things work nicely all the way to the point where I do
>
> child.setBounds(newBounds);
>
> on each of the figure's children in the layout() method. I would have
> expected that would be all there would be to it, but nothing happens --
> none of the children become visible on the screen. I've tried to step
> through the setBounds() method, but I can't find anything obviously
> wrong; the setBounds() ends up in queuing a dirty-region which seems
> reasonable enough.
>
> If anybody has a clue as to what I've forgotten, I'd appreciate the help.
Following the laws of asking for help in newsgroups, I just realized
that the none of the child figures had any layout-managers. Duh.
Sorry for wasting your time.
--
/Jesper
|
|
|
Re: layout manager troubles [message #172392 is a reply to message #172170] |
Thu, 17 March 2005 21:58 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Figures have 0 size now. This is different from the previously release when
figures had some strange hard-coded size. The purpose was to make adding a
figure more efficient.
Some figures have preferred sizes without layoutmanagers, such as Label.
"Jesper Eskilson" <jojo@virtutech.com> wrote in message
news:4238A246.9090700@virtutech.com...
> Jesper Eskilson wrote:
>> Hi,
>>
>> I'm trying to implement my own layout manager for a very specialized
>> situation. Things work nicely all the way to the point where I do
>>
>> child.setBounds(newBounds);
>>
>> on each of the figure's children in the layout() method. I would have
>> expected that would be all there would be to it, but nothing happens --
>> none of the children become visible on the screen. I've tried to step
>> through the setBounds() method, but I can't find anything obviously
>> wrong; the setBounds() ends up in queuing a dirty-region which seems
>> reasonable enough.
>>
>> If anybody has a clue as to what I've forgotten, I'd appreciate the help.
>
> Following the laws of asking for help in newsgroups, I just realized that
> the none of the child figures had any layout-managers. Duh.
>
> Sorry for wasting your time.
>
> --
> /Jesper
|
|
|
Powered by
FUDForum. Page generated in 0.02947 seconds