Parent Directory | Revision Log | Patch
revision 1.4 by mark, Sat Jul 31 23:24:23 2004 UTC | revision 1.5 by mark, Sat Sep 4 17:14:01 2004 UTC | |
---|---|---|
# | Line 54 public abstract class TextAction extends | Line 54 public abstract class TextAction extends |
54 | */ | */ |
55 | public TextAction(String name) | public TextAction(String name) |
56 | { | { |
57 | // TODO | super(name); |
58 | } | } |
59 | ||
60 | /** | /** |
# | Line 64 public abstract class TextAction extends | Line 64 public abstract class TextAction extends |
64 | */ | */ |
65 | protected final JTextComponent getTextComponent(ActionEvent event) | protected final JTextComponent getTextComponent(ActionEvent event) |
66 | { | { |
67 | return null; // TODO | if (event.getSource() != null && |
68 | event.getSource() instanceof JTextComponent) | |
69 | return (JTextComponent) event.getSource(); | |
70 | else | |
71 | return getFocusedComponent(); | |
72 | } | } |
73 | ||
74 | /** | /** |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |