equal
deleted
inserted
replaced
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 |