38 |
|
|
39 |
package javax.swing.plaf.basic; |
package javax.swing.plaf.basic; |
40 |
|
|
|
import javax.swing.AbstractButton; |
|
41 |
import javax.swing.Icon; |
import javax.swing.Icon; |
42 |
import javax.swing.JComponent; |
import javax.swing.JComponent; |
43 |
import javax.swing.UIDefaults; |
import javax.swing.UIDefaults; |
57 |
return defaults.getIcon("CheckBox.icon"); |
return defaults.getIcon("CheckBox.icon"); |
58 |
} |
} |
59 |
|
|
60 |
public void installUI(final JComponent c) { |
/** |
61 |
super.installUI(c); |
* Returns the prefix for entries in the {@link UIDefaults} table. |
62 |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); |
* |
63 |
((AbstractButton) c).setIcon(defaults.getIcon("CheckBox.icon")); |
* @return "CheckBox." |
64 |
((AbstractButton) c).setSelectedIcon(defaults.getIcon("CheckBox.checkIcon")); |
*/ |
|
} |
|
|
|
|
|
// Overridden to change method access. |
|
65 |
public String getPropertyPrefix() |
public String getPropertyPrefix() |
66 |
{ |
{ |
67 |
return super.getPropertyPrefix(); |
return "CheckBox."; |
68 |
} |
} |
69 |
} |
} |
70 |
|
|