diff --git a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatRadioButtonUI.java b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatRadioButtonUI.java index d248d685..ecfbb037 100644 --- a/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatRadioButtonUI.java +++ b/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatRadioButtonUI.java @@ -121,8 +121,9 @@ public class FlatRadioButtonUI // fill background even if opaque if // - used as cell renderer (because of selection background) // - if background was explicitly set to a non-UIResource color - if( !c.isOpaque() && - (c.getParent() instanceof CellRendererPane || !(c.getBackground() instanceof UIResource)) ) + if( ( !c.isOpaque() && + (c.getParent() instanceof CellRendererPane || !(c.getBackground() instanceof UIResource))) + || c instanceof AbstractButton && ((AbstractButton) c).isContentAreaFilled() ) { g.setColor( c.getBackground() ); g.fillRect( 0, 0, c.getWidth(), c.getHeight() );