Hardware Acceleration, Overlay Windows in Java

Q1. Is there some Way to directly Access the Hardware Overlay Buffer Plane ?
There is Glass Pane, but it is Software Emulation … Right ? I want to use the Hardware Feature and Hardware Overlay Plane Buffer.

Q2. I have seen Glass Pane, but it is slow, is there some other Efficient Way to Implement Overlays in Java ?

Probably this information will help you a bit to figure out what i am upto.
Layer 1. Background Static Images
Layer 2. Video (Dynamic 2D Graphics on Overlay Window, Infront of Background Static Images)
Layer 3. Another Layer of Dynamic Graphics over Video Layer

I am not yet sure about working with 3rd Layer, but i am first looking into doing Layer 2 Efficiently.

Thanks,
Regards,

OpenGL would be the only hardware accelerated way that I can think of. That means using JOGL or LWJGL.

You’re right, if Glasspane changes, the underlaying background is repainted and after this Glasspane is painted over the background.

I would think of the following solution: Paint the Glasspane-Content into a transarent buffered image (volatile iamges are till now not accerlated if transparent) and your content into a VolatileImage.
After this just paint the content first and your glass-pane-buffered-iamage to screen.

lg Clemens

thanks,
can you reffer me to some good material on transparent buffered image. and secondly i could’t fully get you.
did you mean to say that i should draw the Contents in Volatile Image and Transparent image in Buffered Image and
then paint the Contents First, but when i will paint the contents of Buffered Image on Glass Pane the Contents of the background will be refereshed, right ?

One more thing, as you mentioned. If something changes on Glass Pane the underlying background is repainted first then Glasspane is repainted.
What if the contents of underlying background change first,

Cheers,