/[classpath]/classpath/javax/swing/text/TextAction.java
ViewVC logotype

Diff of /classpath/javax/swing/text/TextAction.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch 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    /**    /**

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26