/** * * Method that deals with the menu options * @param event the event that triggered this method */ public void actionPerformed(ActionEvent event) { if (event.getSource() == newMenuItem) { try { tableArea.newGame(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } else if (event.getSource() == topScoresOption) { } else if (event.getSource() == quitMenuItem) { System.exit(0); } else if (event.getSource() == aboutMenuItem) { JOptionPane.showMessageDialog( tableArea, "By Jeffrey Wang and Hayes Lee\n\u00a9 2015", "About Neon Hex", JOptionPane.INFORMATION_MESSAGE); } }