Skip to main content

Will JXLayer avoid whole shaped window repainting!!!

1 reply [Last post]
sharath_tc
Offline
Joined: 2008-08-13

I have a transparent shaped window (using AWTUtilities.setWindowOpaque(false)) from Java 1.6U10. It contains a JComponent on which animation runs (with repaint to component background also). But its taxing CPU heavily, since JComponent repaint is triggering shaped window to repaint. Will JXlayer solve this problem (of expensive shaped window repaint)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alexfromsun
Offline
Joined: 2005-09-05

Hello Sharath_tc

Windows OS requires a buffer image for the whole non-opaque window

to support the translucency effect, that's why AWT regenerates the image

when a component is repainted, JXLayer can't change it by any means

ask Swing & AWT forum for more information about that

Thanks

alexp