Closed GoogleCodeExporter closed 9 years ago
Use
form.setLayout(new BorderLayout());
form.addComponent(BorderLayout.CENTER, tabs1);
Original comment by shai.almog
on 4 Aug 2012 at 9:02
Thanks for fast response. Unfortunately it still doesn't work as needed: if I
scroll the contentPane (with "Label x") then the tab pane (with "Tab1") also
scrolls away and becomes invisible. You expect the tab pane to stay fixed at
the bottom of the screen and only the contentPane to scroll.
Original comment by ch.hj...@gmail.com
on 4 Aug 2012 at 10:50
You need:
container1.setScrollableY(true);
Otherwise you are creating a huge non-scrollable container and there is no
sensible way to lay it out.
Original comment by shai.almog
on 4 Aug 2012 at 12:59
Thanks for your help, and sorry for reporting an invalid bug. I only did it
instead of using the forum, because I thought such a simple example should work
and it had to be an error.
The whole layout thing is not intuitive and I haven't found good documentation
helping me get a solid mental model I can use. Every time I try to get the
layout I need, I tend to end up spending hours on trial and error.
Original comment by ch.hj...@gmail.com
on 4 Aug 2012 at 5:46
We know its a bit complex sometime and has a high learning curve. That's mainly
why we recommend the GUI builder where its easy to play around with the various
cases.
I wrote quite a bit about these in the developer guide, if you think something
specific wasn't mentioned feel free to let us know.
Original comment by shai.almog
on 4 Aug 2012 at 6:49
Original issue reported on code.google.com by
ch.hj...@gmail.com
on 4 Aug 2012 at 8:50