Skip to main content

Using LockableUI to lock the current panel being used

No replies
Joined: 2010-09-01

I followed the guide here

to create a lockable panel with a Gaussian blur effect. The effect works great when I invoke it myself with setLocked(true). But when I activate the effect with an action listener from within the panel that I'm going to lock, it doesn't fully work. The mouse cursor will change to the "busy" cursor, but there won't be a blur effect. I'm guessing the problem is that it can't draw over something that's currently animating. And sine the lock is activated when a button is pressed, the button has to go to the unpressed image for the panel to be drawn.

Any idea on how to get the blur effect to work? I tried to repaint the panel, the content pane of the frame, the button being pushed, and even tried using threads.