KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > swing > plaf > basic > BasicCheckBoxUI


1 /*
2  * @(#)BasicCheckBoxUI.java 1.37 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.swing.plaf.basic;
9
10 import javax.swing.*;
11
12 import java.awt.*;
13 import java.awt.event.*;
14 import javax.swing.plaf.*;
15 import java.io.Serializable JavaDoc;
16
17
18 /**
19  * CheckboxUI implementation for BasicCheckboxUI
20  * <p>
21  * <strong>Warning:</strong>
22  * Serialized objects of this class will not be compatible with
23  * future Swing releases. The current serialization support is
24  * appropriate for short term storage or RMI between applications running
25  * the same version of Swing. As of 1.4, support for long term storage
26  * of all JavaBeans<sup><font size="-2">TM</font></sup>
27  * has been added to the <code>java.beans</code> package.
28  * Please see {@link java.beans.XMLEncoder}.
29  *
30  * @version 1.37 12/19/03
31  * @author Jeff Dinkins
32  */

33 public class BasicCheckBoxUI extends BasicRadioButtonUI JavaDoc {
34
35     private final static BasicCheckBoxUI JavaDoc checkboxUI = new BasicCheckBoxUI JavaDoc();
36
37     private final static String JavaDoc propertyPrefix = "CheckBox" + ".";
38
39     // ********************************
40
// Create PLAF
41
// ********************************
42
public static ComponentUI createUI(JComponent b) {
43         return checkboxUI;
44     }
45
46     public String JavaDoc getPropertyPrefix() {
47     return propertyPrefix;
48     }
49
50 }
51
Popular Tags