Blur a non opaque JXPanel
First, it's a while i'm following your work and I thought you gave up any developement on SwingX...Anyway, I'm glad you're not, and still releasing! I would like to ask how to blur a JXPanel, I found a link (http://www.curious-creature.org/2007/08/01/blurred-background-for-dialog...), but it's more than I want and more complicated than expected...Here is a first approach of what I've done in paintComponent method:
<br /> Image img = root.createImage(root.getWidth(), root.getHeight());<br /> BufferedImage buf = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_RGB);<br /> buf.getGraphics().drawImage(img, 0, 0, null);<br /> ImagePainter p = new ImagePainter(buf);<br /> p.setFilters(new GaussianBlurFilter(10));<br /> setBackgroundPainter(p);<br />
The "output" is that, the panel is display as it was non opaque, no sign of blur :'(
Thanks for your help!