private static void updateWindowUI(Window window){
  SwingUtilities.updateComponentTreeUI(window);
  Window ownedWins[]=window.getOwnedWindows();
  for (  Window ownedWin : ownedWins) {
    updateWindowUI(ownedWin);
  }
}

private static void updateWindowUI ( Window window ) { SwingUtilities . updateComponentTreeUI ( window ) ; Window ownedWins [ ] = window . getOwnedWindows ( ) ; for ( Window ownedWin : ownedWins ) { updateWindowUI ( ownedWin ) ; } }
updates the ui of the passed in window and all its children .
