swingx
  1. swingx
  2. SWINGX-1397

JXPanel does not paint background color correctly when alpha < 1

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.6.3
    • Component/s: None
    • Labels:
      None

      Description

      BackgroundPainter will not paint the background when a component is not opaque. Components supporting alpha transparency must still paint their backgrounds.

        Activity

        Hide
        Karl Schaefer added a comment -

        Issue 1397: Added an AlphaPaintable interface. Have JXPanel implement that interface. Ensure that BackgroundPainter properly handles AlphaPaintables. Update visual check to ensure that the background color is indeed being painted.

        swingx-core/src/main/java/org/jdesktop/swingx/AlphaPaintable.java
        swingx-core/src/main/java/org/jdesktop/swingx/BackgroundPainter.java
        swingx-core/src/main/java/org/jdesktop/swingx/JXPanel.java
        swingx-core/src/test/java/org/jdesktop/swingx/JXPanelVisualCheck.java

        Committed revision 3929.

        Show
        Karl Schaefer added a comment - Issue 1397: Added an AlphaPaintable interface. Have JXPanel implement that interface. Ensure that BackgroundPainter properly handles AlphaPaintables. Update visual check to ensure that the background color is indeed being painted. swingx-core/src/main/java/org/jdesktop/swingx/AlphaPaintable.java swingx-core/src/main/java/org/jdesktop/swingx/BackgroundPainter.java swingx-core/src/main/java/org/jdesktop/swingx/JXPanel.java swingx-core/src/test/java/org/jdesktop/swingx/JXPanelVisualCheck.java Committed revision 3929.

          People

          • Assignee:
            Karl Schaefer
            Reporter:
            Karl Schaefer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: