+ graph = new MicroGraph();
+ stats = new MicroStatsTable();
+ pane.add(graph.panel, "Graph");
+ pane.add(stats, "Statistics");
+ pane.doLayout();
+ pane.validate();
+ container.add(pane);
+ container.doLayout();
+ container.validate();
+ doLayout();
+ validate();
+ Insets i = getInsets();
+ Dimension ps = pane.getPreferredSize();
+ ps.width += i.left + i.right;
+ ps.height += i.top + i.bottom;
+ setPreferredSize(ps);
+ setSize(ps);