PDA

View Full Version : panel in panel



stevieke
24 Apr 2009, 6:28 AM
hello everybody

i have a panel in a panel

now i want to say that the panel inside has to take the height of the first panel with a marge between the to of 20px

how does i do that?

greetz steven

24 Apr 2009, 6:31 AM
just the height? not the total height + width with a 20 pixel margin?

Animal
24 Apr 2009, 6:41 AM
now i want to say that the panel inside has to take the height of the first panel with a marge between the to of 20px




I do not understand. That sentence is amlost meaningless.

First, why have a Panel in a Panel?

And if yoiu need that, then just the layout of the outer Panel to size its child.

Possibly anchor layout?

Animal
24 Apr 2009, 6:43 AM
I mean, this is a marge:

http://www.bobien.be/pictures/Simpsons_252.gif

So, what do you want?

campersau
24 Apr 2009, 6:46 AM
Maybe he means margin?!

stevieke
24 Apr 2009, 7:00 AM
what i mean

i have a window from 800 height(borderlayout)
on this window a have a left and center part
on the center part i set a panel(and if a press a button in the left, i set another)

now i want to know how i say against the panel in the center i has to take the height available...

I hope this is more clear...

thanx in advance

Animal
24 Apr 2009, 7:01 AM
So you want the center Panel, to fit one single child item exactly?

stevieke
24 Apr 2009, 7:22 AM
So, in my print screen you can see that i have 3 dateboxes and now it stands on autoheight.

Now i don't want auto height but i want that it take all the whitespace, So the line under "einddatum" has to become much lower

Animal
24 Apr 2009, 8:47 AM
I can't see anything in forum image attachments, they're much too small.