Modified example file OptionsWindow.java