1. /*
  2. * @(#)BasicCheckBoxUI.java 1.32 01/11/29
  3. *
  4. * Copyright 2002 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 appropriate
  19. * for short term storage or RMI between applications running the same
  20. * version of Swing. A future release of Swing will provide support for
  21. * long term persistence.
  22. *
  23. * @version 1.32 11/29/01
  24. * @author Jeff Dinkins
  25. */
  26. public class BasicCheckBoxUI extends BasicRadioButtonUI {
  27. private final static BasicCheckBoxUI checkboxUI = new BasicCheckBoxUI();
  28. private final static String propertyPrefix = "CheckBox" + ".";
  29. // ********************************
  30. // Create PLAF
  31. // ********************************
  32. public static ComponentUI createUI(JComponent b) {
  33. return checkboxUI;
  34. }
  35. public String getPropertyPrefix() {
  36. return propertyPrefix;
  37. }
  38. }