jdk/src/java.desktop/share/classes/javax/swing/plaf/synth/SynthDesktopPaneUI.java
changeset 37698 4d798c873df0
parent 36464 1b3f6e14e5ec
equal deleted inserted replaced
37697:9bdfdb90249b 37698:4d798c873df0
   117         style = SynthLookAndFeel.updateStyle(context, this);
   117         style = SynthLookAndFeel.updateStyle(context, this);
   118         if (oldStyle != null) {
   118         if (oldStyle != null) {
   119             uninstallKeyboardActions();
   119             uninstallKeyboardActions();
   120             installKeyboardActions();
   120             installKeyboardActions();
   121         }
   121         }
   122         context.dispose();
       
   123     }
   122     }
   124 
   123 
   125     /**
   124     /**
   126      * {@inheritDoc}
   125      * {@inheritDoc}
   127      */
   126      */
   141     @Override
   140     @Override
   142     protected void uninstallDefaults() {
   141     protected void uninstallDefaults() {
   143         SynthContext context = getContext(desktop, ENABLED);
   142         SynthContext context = getContext(desktop, ENABLED);
   144 
   143 
   145         style.uninstallDefaults(context);
   144         style.uninstallDefaults(context);
   146         context.dispose();
       
   147         style = null;
   145         style = null;
   148 
   146 
   149         if (taskBar != null) {
   147         if (taskBar != null) {
   150             for (Component comp : taskBar.getComponents()) {
   148             for (Component comp : taskBar.getComponents()) {
   151                 JInternalFrame.JDesktopIcon desktopIcon =
   149                 JInternalFrame.JDesktopIcon desktopIcon =
   458 
   456 
   459         SynthLookAndFeel.update(context, g);
   457         SynthLookAndFeel.update(context, g);
   460         context.getPainter().paintDesktopPaneBackground(context, g, 0, 0,
   458         context.getPainter().paintDesktopPaneBackground(context, g, 0, 0,
   461                                                   c.getWidth(), c.getHeight());
   459                                                   c.getWidth(), c.getHeight());
   462         paint(context, g);
   460         paint(context, g);
   463         context.dispose();
       
   464     }
   461     }
   465 
   462 
   466     /**
   463     /**
   467      * Paints the specified component according to the Look and Feel.
   464      * Paints the specified component according to the Look and Feel.
   468      * <p>This method is not used by Synth Look and Feel.
   465      * <p>This method is not used by Synth Look and Feel.
   475     @Override
   472     @Override
   476     public void paint(Graphics g, JComponent c) {
   473     public void paint(Graphics g, JComponent c) {
   477         SynthContext context = getContext(c);
   474         SynthContext context = getContext(c);
   478 
   475 
   479         paint(context, g);
   476         paint(context, g);
   480         context.dispose();
       
   481     }
   477     }
   482 
   478 
   483     /**
   479     /**
   484      * Paints the specified component. This implementation does nothing.
   480      * Paints the specified component. This implementation does nothing.
   485      *
   481      *