// The chooser doesn't center itself correctly, so move it down a little by force
colorChooser.setBorder(new EmptyBorder(7, 0, 0, 0));
// Set up the preview component
preview = new DefaultPreviewPanel();
preview.setMinimumSize(PREVIEW_SIZE);
preview.setMaximumSize(PREVIEW_SIZE);
preview.setPreferredSize(PREVIEW_SIZE);
preview.setSize(PREVIEW_SIZE);
preview.setBorder(new ShadowBorder());