|
|
|
@ -125,8 +125,7 @@ public class UICheckBox extends JCheckBox implements UIObserver, GlobalNameObser
|
|
|
|
|
|
|
|
|
|
private class UICheckBoxUI extends MetalCheckBoxUI { |
|
|
|
|
@Override |
|
|
|
|
public void paint(Graphics g, JComponent c) { |
|
|
|
|
synchronized (this) { |
|
|
|
|
public synchronized void paint(Graphics g, JComponent c) { |
|
|
|
|
AbstractButton b = (AbstractButton) c; |
|
|
|
|
ButtonModel model = b.getModel(); |
|
|
|
|
Dimension size = c.getSize(); |
|
|
|
@ -179,7 +178,6 @@ public class UICheckBox extends JCheckBox implements UIObserver, GlobalNameObser
|
|
|
|
|
// Draw the Text
|
|
|
|
|
drawLine(text, g, b, c, textRect, fm); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void drawLine(String text, Graphics g, AbstractButton b, JComponent c, Rectangle textRect, FontMetrics fm) { |
|
|
|
|
if (text != null) { |
|
|
|
|