import javax.swing.border.*; static JPanel jRaisedSection(Component c) { ret jRaisedSection("", c); } static JPanel jRaisedSection(fS title, final Component c) { ret swing(func -> JPanel { Border border = BorderFactory.createBevelBorder(BevelBorder.RAISED); border = BorderFactory.createTitledBorder(border, title); JPanel panel = new SingleComponentPanel(c); panel.setBorder(border); ret panel; }); } static JPanel jRaisedSection(S title) { ret jRaisedSection(title, new JPanel); }