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

Request for better visualization of line breaks

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 7
    • client-libs

      When a portion of text in a text component is selected, it is customary to highlight line breaks, e.g. in the end of a paragraph. As of version 7, Swing renders a one-pixel vertical stripe, which is not always the best possible option (consider a heading typed in a large font - an extra pixel after it would not be noticeable at all).

      One approach to consider is to allocate some space for line breaks. How exactly much space to allocate should depend on the size of the symbol preceding the line break. We could then visualize the line break in several ways: paint selection or a 'pilcrow' symbol there.

      Note that currently Views responsible for line breaks have zero width. Implementing the above approach is therefore backward incompatible, since it affects layout.

            peterz Peter Zhelezniakov
            peterz Peter Zhelezniakov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: