Why the interface BackgroundPaintable has the package visibility? I really want to know why, because I would like to use it...
The interface exists to ensure that SwingX code provide duck-typing similar to core duck-typing. Consistant APIs for disparate components.
What's the use-case for making this interface public?
No answer?! :'(
If it's not documented nor has a task issue in the tracker, you'll have to wait for Karl - he's who added that part.
Why have this interface public? Well, I have a function "blur" which take in parameter a JXPanel, and blur it but I want to do the same for all components (JXButton, JXLabel, etc...) having the method setBackgroundPainter, it means implementing BackgroundPaintable.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.