Skip to main content

BackgroundPaintable is not public

4 replies [Last post]
WarriorDog
Offline
Joined: 2012-03-04
Points: 0

Hi,

Why the interface BackgroundPaintable has the package visibility? I really want to know why, because I would like to use it...

Regards,

WarriorDog

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kschaefe
Offline
Joined: 2006-06-08
Points: 0

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?

Karl

WarriorDog
Offline
Joined: 2012-03-04
Points: 0

No answer?! :'(

kleopatra
Offline
Joined: 2003-06-11
Points: 0

impatient?

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.

Cheers

Jeanette

WarriorDog
Offline
Joined: 2012-03-04
Points: 0

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.