/[classpath]/classpath/javax/swing/plaf/basic/BasicTextUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicTextUI.java

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

revision 1.13 by mkoch, Fri Oct 22 12:44:01 2004 UTC revision 1.14 by mark, Thu Nov 11 17:22:52 2004 UTC
# Line 461  public abstract class BasicTextUI extend Line 461  public abstract class BasicTextUI extend
461    
462    protected void modelChanged()    protected void modelChanged()
463    {    {
464        if (textComponent == null || rootView == null)
465          return;
466      ViewFactory factory = rootView.getViewFactory();      ViewFactory factory = rootView.getViewFactory();
467      Element elem = textComponent.getDocument().getDefaultRootElement();      if (factory == null)
468          return;
469        Document doc = textComponent.getDocument();
470        if (doc == null)
471          return;
472        Element elem = doc.getDefaultRootElement();
473        if (elem == null)
474          return;
475      setView(factory.create(elem));      setView(factory.create(elem));
476    }    }
477  }  }

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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