Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4306206

ParagraphView does not use FirstLineIndent attribute

XMLWordPrintable

      Bug in source javax.swing.text.ParagraphView.java:

      Description:
        
      The Attribute javax.swing.text.StyleConstants.FirstLineIndent is read from
      the AttributeSet in ParagraphView.setProperiesFromAttributes() :
        
      (line 99) firstLineIndent = (int)StyleConstants.getFirstLineIndent(attr);
        
      but never used in ParagraphView. The existing ParagraphView doesn't
      consider this attribute at all.
        
      In my opinion it should by used in ParagraphView.createRow() to set the
      insets accordingly. It should be added to the LeftIndent of the first Row
      in the Paragraph.

      System: WindowsNT
      Version : Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-R)
      Java HotSpot(TM) Client VM (build 1.3-R, mixed mode)

      Location: in deliverd source code (src.jar)
      jdk1.3/src/javax/swing/text/ParagraphView.java (@(#)ParagraphView.java 1.75 99/12/04)

            idk Igor Kushnirskiy (Inactive)
            pmaier Peter Maier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: