mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-13 07:17:13 -06:00
Button: invoke static methods without class specification
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user