Question

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

Was it helpful?

Solution

Transparancy is controlled with

setOpaque(false)

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top