From: Erik V. <ev...@us...> - 2009-10-31 17:08:37
|
Update of /cvsroot/rails/18xx/rails/ui/swing/gamespecific/_18AL In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv12071/rails/ui/swing/gamespecific/_18AL Modified Files: NameTrainsDialog.java Log Message: More rationalising of static method usage Index: NameTrainsDialog.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/ui/swing/gamespecific/_18AL/NameTrainsDialog.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** NameTrainsDialog.java 4 Jun 2008 19:00:40 -0000 1.3 --- NameTrainsDialog.java 31 Oct 2009 17:08:27 -0000 1.4 *************** *** 176,181 **** // Find the coordinates of the selected button for (NamedTrainToken token : tokens) { ! List<JRadioButton> buttons = ! (List<JRadioButton>) buttonsPerToken.get(token); for (JRadioButton button : buttons) { if (button == radioButton) { --- 176,180 ---- // Find the coordinates of the selected button for (NamedTrainToken token : tokens) { ! List<JRadioButton> buttons = buttonsPerToken.get(token); for (JRadioButton button : buttons) { if (button == radioButton) { *************** *** 201,205 **** if (otherToken != token) { List<JRadioButton> otherButtons = ! (List<JRadioButton>) buttonsPerToken.get(otherToken); JRadioButton otherButton = otherButtons.get(x); if (otherButton.isSelected()) { --- 200,204 ---- if (otherToken != token) { List<JRadioButton> otherButtons = ! buttonsPerToken.get(otherToken); JRadioButton otherButton = otherButtons.get(x); if (otherButton.isSelected()) { |