Update window.java