layout and painting problem
I'am currently writing a simple API allowing to manage "busy" components.
What it means ? it's standard components that own a BusyModel allowing to set or not theses components in a "busy" state.
When it's the case an animation is painted over the component (like a BusyPainter).
The main interrest of this api is the BusyModel that inherit of BoundedRangeModel. By this way this model can be in a "determinate" mode or not. On this case the animation is provided with a progress bar and a % counter.
In addition, the BusyModel increase functionnality with a "cancellable" property that allow the busy animation to provide a "cancel" hyperlink button (or not).
The last hint of this api is the special implementation of a BusyModel tracking the process of "Futures" used by the concurrent package.
Well, all of theses functionnality can be done easily by your impressive JXLayer API. And all works fine except some repaints (and maybe doLayout).
On the glassPane i put a JXPanel using a JXBusyLabel. when the JXBusyLabel is moved inside the Panel (after a doLayout), i keep an old painting version of the label at the old place.
I don't kwnow where is the problem
- In my use of JXLayer (or of the JXBusyLabel)
- a bug on JXLayer somewhere
- a bug on JXBusyLabel somewhere
A this point i'm not be able to determine the problem location...
If you can regard the code, you can download the netbeans project here : http://objectserver.googlecode.com/files/BusyHandler.zip
In the dist directory you have a sample that demonstrate what we talk.