38 |
|
|
39 |
package javax.swing.plaf.metal; |
package javax.swing.plaf.metal; |
40 |
|
|
|
import java.awt.Color; |
|
41 |
import java.awt.Component; |
import java.awt.Component; |
42 |
import java.awt.Graphics; |
import java.awt.Graphics; |
|
|
|
43 |
import java.io.Serializable; |
import java.io.Serializable; |
44 |
|
|
45 |
import javax.swing.Icon; |
import javax.swing.Icon; |
77 |
*/ |
*/ |
78 |
protected void drawCheck(Component c, Graphics g, int x, int y) |
protected void drawCheck(Component c, Graphics g, int x, int y) |
79 |
{ |
{ |
80 |
g.setColor(Color.BLACK); |
if (c.isEnabled()) |
81 |
|
g.setColor(MetalLookAndFeel.getBlack()); |
82 |
|
else |
83 |
|
g.setColor(MetalLookAndFeel.getControlDisabled()); |
84 |
g.drawLine(3 + x, 5 + y, 3 + x, 9 + y); |
g.drawLine(3 + x, 5 + y, 3 + x, 9 + y); |
85 |
g.drawLine(4 + x, 5 + y, 4 + x, 9 + y); |
g.drawLine(4 + x, 5 + y, 4 + x, 9 + y); |
86 |
g.drawLine(5 + x, 7 + y, 9 + x, 3 + y); |
g.drawLine(5 + x, 7 + y, 9 + x, 3 + y); |