fixed SetVisible method for window.java