1. /*
  2. * @(#)BasicCheckBoxUI.java 1.36 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.swing.plaf.basic;
  8. import javax.swing.*;
  9. import java.awt.*;
  10. import java.awt.event.*;
  11. import javax.swing.plaf.*;
  12. import java.io.Serializable;
  13. /**
  14. * CheckboxUI implementation for BasicCheckboxUI
  15. * <p>
  16. * <strong>Warning:</strong>
  17. * Serialized objects of this class will not be compatible with
  18. * future Swing releases. The current serialization support is
  19. * appropriate for short term storage or RMI between applications running
  20. * the same version of Swing. As of 1.4, support for long term storage
  21. * of all JavaBeans<sup><font size="-2">TM</font></sup>
  22. * has been added to the <code>java.beans</code> package.
  23. * Please see {@link java.beans.XMLEncoder}.
  24. *
  25. * @version 1.36 01/23/03
  26. * @author Jeff Dinkins
  27. */
  28. public class BasicCheckBoxUI extends BasicRadioButtonUI {
  29. private final static BasicCheckBoxUI checkboxUI = new BasicCheckBoxUI();
  30. private final static String propertyPrefix = "CheckBox" + ".";
  31. // ********************************
  32. // Create PLAF
  33. // ********************************
  34. public static ComponentUI createUI(JComponent b) {
  35. return checkboxUI;
  36. }
  37. public String getPropertyPrefix() {
  38. return propertyPrefix;
  39. }
  40. }