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

JTextPane seems to insist on drawing on its own background.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.1.5
    • 0.9
    • client-libs
    • None
    • 1.1.5
    • generic
    • generic
    • Not verified

      As far as I can tell, the JTextPane always insists on drawing on a solid colored background (set via setBackground()). This is fine, no doubt, when the field is placed on a plain background for display or editing. But, when used via the SwingUtils.paintComponent() method, this becomes a hinderance, because it is impossible to place the text over arbitrary backgrounds (which may be precisely the intent of using SwingUtils.paintComponent()). This limitation should be removed.

            tprinzing Tim Prinzing (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: