38 |
|
|
39 |
package javax.swing.plaf.metal; |
package javax.swing.plaf.metal; |
40 |
|
|
41 |
|
import javax.swing.JCheckBox; |
42 |
import javax.swing.JComponent; |
import javax.swing.JComponent; |
43 |
|
import javax.swing.UIDefaults; |
44 |
import javax.swing.plaf.ComponentUI; |
import javax.swing.plaf.ComponentUI; |
|
import javax.swing.plaf.basic.BasicCheckBoxUI; |
|
45 |
|
|
46 |
|
/** |
47 |
|
* A UI delegate for the {@link JCheckBox} component under the |
48 |
|
* {@link MetalLookAndFeel}. |
49 |
|
*/ |
50 |
public class MetalCheckBoxUI |
public class MetalCheckBoxUI |
51 |
extends BasicCheckBoxUI |
extends MetalRadioButtonUI |
52 |
{ |
{ |
53 |
|
|
54 |
// FIXME: maybe replace by a Map of instances when this becomes stateful |
// FIXME: maybe replace by a Map of instances when this becomes stateful |
76 |
instance = new MetalCheckBoxUI(); |
instance = new MetalCheckBoxUI(); |
77 |
return instance; |
return instance; |
78 |
} |
} |
79 |
|
|
80 |
|
/** |
81 |
|
* Returns the prefix for properties defined in the {@link UIDefaults} table. |
82 |
|
* |
83 |
|
* @return The property prefix (<code>"CheckBox."</code>). |
84 |
|
*/ |
85 |
|
public String getPropertyPrefix() |
86 |
|
{ |
87 |
|
return "CheckBox."; |
88 |
|
} |
89 |
} |
} |
90 |
|
|