40 |
|
|
41 |
import javax.swing.Icon; |
import javax.swing.Icon; |
42 |
import javax.swing.JComponent; |
import javax.swing.JComponent; |
|
import javax.swing.UIDefaults; |
|
43 |
import javax.swing.UIManager; |
import javax.swing.UIManager; |
44 |
import javax.swing.plaf.ComponentUI; |
import javax.swing.plaf.ComponentUI; |
45 |
|
|
52 |
|
|
53 |
public Icon getDefaultIcon() |
public Icon getDefaultIcon() |
54 |
{ |
{ |
55 |
UIDefaults defaults = UIManager.getLookAndFeelDefaults(); |
return UIManager.getIcon("CheckBox.icon"); |
|
return defaults.getIcon("CheckBox.icon"); |
|
56 |
} |
} |
57 |
|
|
58 |
/** |
/** |
59 |
* Returns the prefix for entries in the {@link UIDefaults} table. |
* Returns the prefix for entries in the {@link UIManager} defaults table. |
60 |
* |
* |
61 |
* @return "CheckBox." |
* @return "CheckBox." |
62 |
*/ |
*/ |