|
From: Thomas K. <kr...@us...> - 2010-12-04 12:12:00
|
Update of /cvsroot/bsxproject/jmd/de/mud/jmd In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv2310 Modified Files: JMDShortcutMenu.java Log Message: Use generics thoroughly. Index: JMDShortcutMenu.java =================================================================== RCS file: /cvsroot/bsxproject/jmd/de/mud/jmd/JMDShortcutMenu.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** JMDShortcutMenu.java 11 May 2007 22:10:37 -0000 1.2 --- JMDShortcutMenu.java 4 Dec 2010 12:11:51 -0000 1.3 *************** *** 90,95 **** void select(JButton which) { ! for (Enumeration e=buttons.elements();e.hasMoreElements();) ! ((JButton)e.nextElement()).setBackground(INACTIVE); if (which!=null) which.setBackground(ACTIVE); } --- 90,95 ---- void select(JButton which) { ! for (Enumeration<JButton> e=buttons.elements();e.hasMoreElements();) ! e.nextElement().setBackground(INACTIVE); if (which!=null) which.setBackground(ACTIVE); } |