1    /*
2    Copyright 2000 by Ralph Hartley
3    This software is licenced under the terms of the
4    Gnu Public Licence
5    */
6    import javax.swing.*;
7    
8    class FunButton extends JButton {
9    
10     Class type;
11     int mode;
12   
13     FunButton(String text,Icon icon,Class c,int m) {
14       super(text,icon);
15       type=c;
16       mode = m;
17     }
18   
19     FunButton(Icon icon,Class c,int m) {
20       super(icon);
21       type=c;
22       mode = m;
23     }
24   
25     FunButton(String text,Class c,int m) {
26       super(text);
27       type=c;
28       mode = m;
29     }
30   }
31