static JPanel centerAndSouth(final Component c, final Component s) { ret swing(func -> JPanel { JPanel panel = new JPanel(new BorderLayout); panel.add(BorderLayout.CENTER, wrap(c)); if (s != null) panel.add(BorderLayout.SOUTH, wrap(s)); ret panel; }); }