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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.33 by audriusa, Tue Jul 5 10:22:42 2005 UTC revision 1.34 by mark, Tue Jul 12 09:05:13 2005 UTC
# Line 322  public abstract class JTextComponent ext Line 322  public abstract class JTextComponent ext
322       */       */
323      public void actionPerformed(ActionEvent ev)      public void actionPerformed(ActionEvent ev)
324      {      {
325        caret.setVisible(!caret.isVisible());        Caret c = caret;
326          if (c != null)
327            c.setVisible(!c.isVisible());
328      }      }
329    
330      /**      /**
# Line 331  public abstract class JTextComponent ext Line 333  public abstract class JTextComponent ext
333      public void update()      public void update()
334      {      {
335        stop();        stop();
336        setDelay(caret.getBlinkRate());        Caret c = caret;
337        if (editable)        if (c != null)
338          start();          {
339        else            setDelay(c.getBlinkRate());
340          caret.setVisible(false);            if (editable)
341                start();
342              else
343                c.setVisible(false);
344            }
345      }      }
346    }    }
347    

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

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