changed Window.java