Window.java repaired

main() deleted