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

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

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

revision 1.8 by rabbit78, Tue Sep 13 10:42:03 2005 UTC revision 1.9 by rabbit78, Tue Sep 13 23:44:50 2005 UTC
# Line 504  public class DefaultStyledDocument exten Line 504  public class DefaultStyledDocument exten
504                insertContentTag(data[i]);                insertContentTag(data[i]);
505                break;                break;
506              }              }
           BranchElement root = (BranchElement) getDefaultRootElement();  
507          }          }
508      }      }
509    
# Line 522  public class DefaultStyledDocument exten Line 521  public class DefaultStyledDocument exten
521    
522        BranchElement newParagraph =        BranchElement newParagraph =
523          (BranchElement) createBranchElement(root, tag.getAttributes());          (BranchElement) createBranchElement(root, tag.getAttributes());
524          newParagraph.setResolveParent(getStyle(StyleContext.DEFAULT_STYLE));
525    
526        // Add new paragraph into document structure.        // Add new paragraph into document structure.
527        Element[] added = new Element[]{newParagraph};        Element[] added = new Element[]{newParagraph};
# Line 796  public class DefaultStyledDocument exten Line 796  public class DefaultStyledDocument exten
796      // Use createBranchElement() and createLeafElement instead.      // Use createBranchElement() and createLeafElement instead.
797      SectionElement section = new SectionElement();      SectionElement section = new SectionElement();
798    
799      BranchElement paragraph = new BranchElement(section, null);      BranchElement paragraph =
800          (BranchElement) createBranchElement(section, null);
801        paragraph.setResolveParent(getStyle(StyleContext.DEFAULT_STYLE));
802      tmp = new Element[1];      tmp = new Element[1];
803      tmp[0] = paragraph;      tmp[0] = paragraph;
804      section.replace(0, 0, tmp);      section.replace(0, 0, tmp);

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

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