Issue Details (XML | Word | Printable)

Key: SWINGX-1397
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Karl Schaefer
Reporter: Karl Schaefer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
swingx

JXPanel does not paint background color correctly when alpha < 1

Created: 02/Mar/11 10:33 AM   Updated: 02/Mar/11 10:48 AM   Resolved: 02/Mar/11 10:48 AM
Component/s: None
Affects Version/s: 1.6.2
Fix Version/s: 1.6.3

Time Tracking:
Not Specified

Tags:
Participants: Karl Schaefer


 Description  « Hide

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



Karl Schaefer added a comment - 02/Mar/11 10:48 AM

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.


Karl Schaefer made changes - 02/Mar/11 10:48 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]