Button: invoke static methods without class specification

This commit is contained in:
Karl Tauber
2019-09-03 16:43:17 +02:00
parent cfb19f3117
commit ac467983f6

View File

@@ -83,7 +83,7 @@ public class FlatButtonUI
@Override @Override
public void update( Graphics g, JComponent c ) { public void update( Graphics g, JComponent c ) {
if( c.isOpaque() && FlatButtonUI.isContentAreaFilled( c ) ) { if( c.isOpaque() && isContentAreaFilled( c ) ) {
FlatUIUtils.paintParentBackground( g, c ); FlatUIUtils.paintParentBackground( g, c );
if( c.isEnabled() ) { if( c.isEnabled() ) {
@@ -118,12 +118,12 @@ public class FlatButtonUI
} }
private Color getBackground( Component c ) { private Color getBackground( Component c ) {
boolean def = FlatButtonUI.isDefaultButton( c ); boolean def = isDefaultButton( c );
return def ? defaultBackground : c.getBackground(); return def ? defaultBackground : c.getBackground();
} }
private Color getForeground( Component c ) { private Color getForeground( Component c ) {
boolean def = FlatButtonUI.isDefaultButton( c ); boolean def = isDefaultButton( c );
return def ? defaultForeground : c.getForeground(); return def ? defaultForeground : c.getForeground();
} }
} }