final ColorChooserButton colorChooserButton = new ColorChooserButton();
colorChooserButtons.add(colorChooserButton);
colorChooserButton.setSelectedColor(Color.BLACK);
NumericSpinnerData colorSpinnerData = new NumericSpinnerData(0, 255);
SpinnerItemRenderer colorSpinnerItemRenderer = new SpinnerItemRenderer();
colorSpinnerItemRenderer.getStyles().put("horizontalAlignment", HorizontalAlignment.RIGHT);
final Spinner redSpinner = new Spinner();
redSpinner.setSpinnerData(colorSpinnerData);
redSpinner.setItemRenderer(colorSpinnerItemRenderer);
redSpinner.setPreferredWidth(40);