public void layoutContainer(Container parent) { Insets insets = parent.getInsets(); Component c; c = parent.getComponent(0); if (c.isVisible()) { c.setBounds(insets.left + 152, insets.top + 64, 176, 24); } c = parent.getComponent(1); if (c.isVisible()) { c.setBounds(insets.left + 152, insets.top + 96, 176, 24); } c = parent.getComponent(2); if (c.isVisible()) { c.setBounds(insets.left + 72, insets.top + 8, 184, 32); } c = parent.getComponent(3); if (c.isVisible()) { c.setBounds(insets.left + 16, insets.top + 64, 128, 24); } c = parent.getComponent(4); if (c.isVisible()) { c.setBounds(insets.left + 16, insets.top + 96, 128, 24); } c = parent.getComponent(5); if (c.isVisible()) { c.setBounds(insets.left + 56, insets.top + 176, 96, 32); } c = parent.getComponent(6); if (c.isVisible()) { c.setBounds(insets.left + 176, insets.top + 176, 96, 32); } c = parent.getComponent(7); if (c.isVisible()) { c.setBounds(insets.left + 152, insets.top + 128, 176, 24); } c = parent.getComponent(8); if (c.isVisible()) { c.setBounds(insets.left + 16, insets.top + 128, 128, 24); } }