import javax.swing.border.*; sclass jCenteredLiveValueSection_class extends SingleComponentPanel { LiveValue liveValue; S getTitle() { ret liveValue!; } *(LiveValue lv, Component c) { super(c); bindLiveValueListenerToComponent(this, liveValue = lv, r-awt { setBorder(BorderFactory.createTitledBorder( BorderFactory.createBevelBorder(BevelBorder.LOWERED), liveValue!)); centerSection(jCenteredLiveValueSection_class.this); revalidate(); }); } } static JPanel jCenteredLiveValueSection(final LiveValue lv, final Component c) { ret swingNu(jCenteredLiveValueSection_class, lv, c); }