static JPanel withBorder(javax.swing.border.Border border, final Component c) {
  ret swing(func -> JPanel {
    JPanel p = new JPanel(new BorderLayout);
    p.setBorder(border);
    p.add(c);
    ret p;
  });
}