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);