Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a transparent panel

I need to create a panel which should be invisible but the components inside it (for example, JTextArea, JButton, etc.) should be visible. When I click on the invisible panel, it should become visible.

I can only use JRE 1.4 and nothing more than that. :(

Any idea how to create such a transparent panel???

like image 741
sv_in Avatar asked Nov 03 '08 06:11

sv_in


People also ask

How do I change opacity in Visual Studio?

A. You may need to restart the code editor after the installation, once the application starts again, you will be able to change the opacity of Visual Studio Code by simply pressing the shortcuts CTRL + ALT + Z to increase the transparency or CTRL + ALT + C to decrease the transparency level.


1 Answers

Transparancy is controlled with

setOpaque(false)
like image 166
Peter Avatar answered Oct 28 '22 10:10

Peter