Trying to get the behavior you want out of java layouts is a sysyphian
task. I recommend you give up
and arrange your windows manually the way you want. When you're only
dealing with a few windows,
it's not that hard.
On Thursday, November 12, 2020 at 9:53:16 AM UTC-8 Ivan wrote:
> Hi guys,
> I'm trying to create system of database configurable dashboards but I'm
> not able to setup layout to suite my needs.
> How can I fill whole center area of Border layout with container acting
> like a dashboard with tiles of different sizes arranged in grid/table
> layout.
> I always end up with preferred sizes of components.
> Here is small sample and screenshot.
> Container c = new Container(new GridLayout(1,2));
> Container c2 = new Container(new GridLayout(2,2));
> c2.add(new Button("1,1"));
> c2.add(new Button("1,2"));
> c2.add(new Button("2,1"));
> c2.add(new Button("2,2"));
>
> c.add(c2);
> c.add(new Button("1,3"));
>
> f.add(BorderLayout.CENTER, c);
>
>
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/048580aa-a592-4403-b151-cb3916cd15cbn%40googlegroups.com.