BorderLayoutBuilder row = new BorderLayoutBuilder();
row.center(label).east(buttons);
row.setBackground(BACKGROUND);
Border border = createBorder();
row.setBorder(border);
row.decorate(canvas);
}
private static Border createBorder() {
Border outside = SimpleTabPane.SUPPORTED ? new NoTopEtchedBorder() : new EtchedBorder();
Border border = new CompoundBorder(outside, Empty.border(3, 5, 3, 5));