jdk/src/java.desktop/share/classes/javax/swing/plaf/synth/SynthListUI.java
changeset 37698 4d798c873df0
parent 25859 3317bb8137f4
equal deleted inserted replaced
37697:9bdfdb90249b 37698:4d798c873df0
    73         SynthContext context = getContext(c);
    73         SynthContext context = getContext(c);
    74 
    74 
    75         SynthLookAndFeel.update(context, g);
    75         SynthLookAndFeel.update(context, g);
    76         context.getPainter().paintListBackground(context,
    76         context.getPainter().paintListBackground(context,
    77                           g, 0, 0, c.getWidth(), c.getHeight());
    77                           g, 0, 0, c.getWidth(), c.getHeight());
    78         context.dispose();
       
    79         paint(g, c);
    78         paint(g, c);
    80     }
    79     }
    81 
    80 
    82     /**
    81     /**
    83      * {@inheritDoc}
    82      * {@inheritDoc}
   160             if (oldStyle != null) {
   159             if (oldStyle != null) {
   161                 uninstallKeyboardActions();
   160                 uninstallKeyboardActions();
   162                 installKeyboardActions();
   161                 installKeyboardActions();
   163             }
   162             }
   164         }
   163         }
   165         context.dispose();
       
   166     }
   164     }
   167 
   165 
   168     /**
   166     /**
   169      * {@inheritDoc}
   167      * {@inheritDoc}
   170      */
   168      */
   173         super.uninstallDefaults();
   171         super.uninstallDefaults();
   174 
   172 
   175         SynthContext context = getContext(list, ENABLED);
   173         SynthContext context = getContext(list, ENABLED);
   176 
   174 
   177         style.uninstallDefaults(context);
   175         style.uninstallDefaults(context);
   178         context.dispose();
       
   179         style = null;
   176         style = null;
   180     }
   177     }
   181 
   178 
   182     /**
   179     /**
   183      * {@inheritDoc}
   180      * {@inheritDoc}