Amit Assaraf
Amit Assaraf

Reputation: 504

How do i make a JPanel Transparent?

I tried using setOpaque(false); but it just makes the background of the JPanel white.. How do i make it not draw the panel at all?.

Upvotes: 1

Views: 513

Answers (1)

11684
11684

Reputation: 7507

You answered the question yourself.

The JPanel didn't become white, but it showed -- because it became non-opaque -- the JFrame (or other controls) behind it.

Upvotes: 3

Related Questions