From: Erik V. <ev...@us...> - 2008-12-03 20:17:45
|
Update of /cvsroot/rails/18xx/rails/ui/swing In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv5063/rails/ui/swing Modified Files: StatusWindow.java Log Message: CLeanup Index: StatusWindow.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/ui/swing/StatusWindow.java,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** StatusWindow.java 29 Nov 2008 20:01:33 -0000 1.25 --- StatusWindow.java 3 Dec 2008 20:17:36 -0000 1.26 *************** *** 154,158 **** menuItem = new JCheckBoxMenuItem(LocalText.getText("REPORT")); ! menuItem.setName(LocalText.getText("REPORT")); menuItem.setActionCommand(REPORT_CMD); menuItem.setMnemonic(KeyEvent.VK_R); --- 154,158 ---- menuItem = new JCheckBoxMenuItem(LocalText.getText("REPORT")); ! menuItem.setName(REPORT_CMD); menuItem.setActionCommand(REPORT_CMD); menuItem.setMnemonic(KeyEvent.VK_R); *************** *** 264,267 **** --- 264,268 ---- final JFrame frame = this; addWindowListener(new WindowAdapter () { + @Override public void windowClosing(WindowEvent e) { if (JOptionPane.showConfirmDialog(frame, "Do you really want to exit the game?", "Select", JOptionPane.OK_CANCEL_OPTION) *************** *** 272,276 **** } }); ! pack(); --- 273,277 ---- } }); ! pack(); *************** *** 560,564 **** return gameStatus; } ! public static void uncheckMenuItemBox(String itemName) { int count = optMenu.getMenuComponentCount(); --- 561,565 ---- return gameStatus; } ! public static void uncheckMenuItemBox(String itemName) { int count = optMenu.getMenuComponentCount(); *************** *** 632,636 **** public void keyTyped(KeyEvent e) {} ! } --- 633,637 ---- public void keyTyped(KeyEvent e) {} ! } |