From: Bob J. <jac...@us...> - 2003-05-11 02:01:16
|
Update of /cvsroot/jmri/jmri/jmrix/loconet/pm4 In directory sc8-pr-cvs1:/tmp/cvs-serv29804/jmrix/loconet/pm4 Modified Files: PM4Action.java Log Message: add default ctor (without argument) so that the Action object can be created via reflection easily Index: PM4Action.java =================================================================== RCS file: /cvsroot/jmri/jmri/jmrix/loconet/pm4/PM4Action.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** PM4Action.java 2 Sep 2002 04:56:11 -0000 1.1 --- PM4Action.java 11 May 2003 02:00:41 -0000 1.2 *************** *** 9,16 **** ! /** * PM4Action.java * ! * Description: Swing action to create and register a * PM4Frame object * --- 9,16 ---- ! /** * PM4Action.java * ! * Description: Swing action to create and register a * PM4Frame object * *************** *** 20,29 **** public class PM4Action extends AbstractAction { ! public PM4Action(String s) { super(s);} ! public void actionPerformed(ActionEvent e) { // create a PM4Frame PM4Frame f = new PM4Frame(); ! f.show(); } --- 20,31 ---- public class PM4Action extends AbstractAction { ! public PM4Action(String s) { super(s);} ! ! public PM4Action() { this("PM4 programmer");} ! public void actionPerformed(ActionEvent e) { // create a PM4Frame PM4Frame f = new PM4Frame(); ! f.show(); } |