Reputation: 504
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
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