src/java.desktop/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java
changeset 52248 2e330da7cbf4
parent 47216 71c04702a3d5
child 54858 bbc7c176c168
equal deleted inserted replaced
52247:f775f83d6b60 52248:2e330da7cbf4
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   861         /**
   861         /**
   862          * Updates the UI of the passed in window and all its children.
   862          * Updates the UI of the passed in window and all its children.
   863          */
   863          */
   864         private static void updateWindowUI(Window window) {
   864         private static void updateWindowUI(Window window) {
   865             updateStyles(window);
   865             updateStyles(window);
   866             Window ownedWins[] = window.getOwnedWindows();
   866             Window[] ownedWins = window.getOwnedWindows();
   867             for (Window w : ownedWins) {
   867             for (Window w : ownedWins) {
   868                 updateWindowUI(w);
   868                 updateWindowUI(w);
   869             }
   869             }
   870         }
   870         }
   871 
   871 
   872         /**
   872         /**
   873          * Updates the UIs of all the known Frames.
   873          * Updates the UIs of all the known Frames.
   874          */
   874          */
   875         private static void updateAllUIs() {
   875         private static void updateAllUIs() {
   876             Frame appFrames[] = Frame.getFrames();
   876             Frame[] appFrames = Frame.getFrames();
   877             for (Frame frame : appFrames) {
   877             for (Frame frame : appFrames) {
   878                 updateWindowUI(frame);
   878                 updateWindowUI(frame);
   879             }
   879             }
   880         }
   880         }
   881 
   881