FSColor backgroundColor = style.getBackgroundColor();
//if a border is set or a background color is set, then use a special JButton with the BasicButtonUI.
if (disableOSBorder || backgroundColor instanceof FSRGBColor) {
//when background color is set, need to use the BasicButtonUI, certainly when using XP l&f
BasicButtonUI ui = new BasicButtonUI();
button.setUI(ui);
if (backgroundColor instanceof FSRGBColor) {
FSRGBColor rgb = (FSRGBColor)backgroundColor;
button.setBackground(new Color(rgb.getRed(), rgb.getGreen(), rgb.getBlue()));