Added MainWindow.java for simple GUI operations