views:

1098

answers:

2

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???

+2  A: 

JComponent.setOpaque(false) is the way to go.

gizmo
+4  A: 

Transaprancy is controlled with

setOpaque(false)
Peter