177 |
|
|
178 |
if (icon != null) |
if (icon != null) |
179 |
icon.paintIcon(b, g, ir.x, ir.y); |
icon.paintIcon(b, g, ir.x, ir.y); |
180 |
|
|
181 |
if (text != null && !text.equals("")) |
if (text != null && !text.equals("")) |
182 |
{ |
{ |
|
g.setColor(b.getBackground()); |
|
|
|
|
|
if (b.isOpaque()) |
|
|
g.fillRect(vr.x, vr.y, vr.width, vr.height); |
|
|
else |
|
|
{ |
|
|
g.fillRect(tr.x, tr.y, tr.width, tr.height); |
|
|
if (b.getBorder() != null) |
|
|
b.getBorder().paintBorder(b, g, tr.x, tr.y, tr.width, tr.height); |
|
|
b.setBorder(null); |
|
|
} |
|
|
|
|
183 |
if (b.isEnabled()) |
if (b.isEnabled()) |
184 |
paintEnabledText(b, g, text, tr.x, tr.y + fm.getAscent()); |
paintEnabledText(b, g, text, tr.x, tr.y + fm.getAscent()); |
185 |
else |
else |