Add transparent JPanel upon AWT Component to paint on
Posted
by Gambrinus
on Stack Overflow
See other posts from Stack Overflow
or by Gambrinus
Published on 2010-02-17T16:34:17Z
Indexed on
2010/03/20
1:41 UTC
Read the original article
Hit count: 529
Hi,
I've got a Problem: In my Java application I've got an AWT Component (cannot change that one) that streams and shows an avi-file. Now I want to draw upon this movie and thought about putting a transparent JPanel above it and draw on that one.
This does not work since I either see the avi-stream or the drawn lines but not both.
I read somewhere that AWT does not support transparency of components - but the panel is a JPanel which is able to do so.
Can someone please help me with this one - thanks in advance.
© Stack Overflow or respective owner