Transparent JPanel, Canvas background in JFrame
- by Andy Tyurin
I wanna make canvas background and add some elements on top of it. For this goal I made JPanel as transparent container with setOpaque(false) and added it as first of JFrame container, then I added canvas with black background (in future I wanna set animation) to JFrame as second element.
But I can't undestand why i see grey background, not a…