52 |
import javax.swing.JComponent; |
import javax.swing.JComponent; |
53 |
import javax.swing.LookAndFeel; |
import javax.swing.LookAndFeel; |
54 |
import javax.swing.SwingUtilities; |
import javax.swing.SwingUtilities; |
|
import javax.swing.UIDefaults; |
|
55 |
import javax.swing.UIManager; |
import javax.swing.UIManager; |
56 |
import javax.swing.plaf.ButtonUI; |
import javax.swing.plaf.ButtonUI; |
57 |
import javax.swing.plaf.ComponentUI; |
import javax.swing.plaf.ComponentUI; |
443 |
} |
} |
444 |
else |
else |
445 |
{ |
{ |
|
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); |
|
446 |
String prefix = getPropertyPrefix(); |
String prefix = getPropertyPrefix(); |
447 |
g.setColor(defaults.getColor(prefix + "disabledText")); |
g.setColor(UIManager.getColor(prefix + "disabledText")); |
448 |
g.drawString(text, textRect.x, textRect.y + fm.getAscent()); |
g.drawString(text, textRect.x, textRect.y + fm.getAscent()); |
449 |
} |
} |
450 |
} |
} |