void (boolean toCenter, JComponent component) { myLabelPlaceholder.removeAll(); JComponent content = toCenter ? new Centerizer(component, Centerizer.TYPE.BOTH) : new Centerizer(component, Centerizer.TYPE.VERTICAL); myLabelPlaceholder.setContent(content); myCentered = toCenter; }