jdk/src/share/classes/javax/swing/plaf/metal/MetalCheckBoxUI.java
changeset 25178 dbab904451e9
parent 22574 7f8ce0c8c20a
equal deleted inserted replaced
25177:487a5e71f6dd 25178:dbab904451e9
    65     private boolean defaults_initialized = false;
    65     private boolean defaults_initialized = false;
    66 
    66 
    67     // ********************************
    67     // ********************************
    68     //         Create PlAF
    68     //         Create PlAF
    69     // ********************************
    69     // ********************************
       
    70 
       
    71     /**
       
    72      * Returns an instance of {@code MetalCheckBoxUI}.
       
    73      *
       
    74      * @param b a component
       
    75      * @return a new instance of {@code MetalCheckBoxUI}
       
    76      */
    70     public static ComponentUI createUI(JComponent b) {
    77     public static ComponentUI createUI(JComponent b) {
    71         AppContext appContext = AppContext.getAppContext();
    78         AppContext appContext = AppContext.getAppContext();
    72         MetalCheckBoxUI checkboxUI =
    79         MetalCheckBoxUI checkboxUI =
    73                 (MetalCheckBoxUI) appContext.get(METAL_CHECK_BOX_UI_KEY);
    80                 (MetalCheckBoxUI) appContext.get(METAL_CHECK_BOX_UI_KEY);
    74         if (checkboxUI == null) {
    81         if (checkboxUI == null) {