JavaApplication2 is the GUI interface