Re: can't stop JPanel paint

On Thu, 14 Jul 2011 04:43:04 -0700 (PDT), Peter Cheung
<cmk128@xxxxxxxxx> wrote, quoted or indirectly quoted someone who said

I have overrider all the paintXX method and did nothing in there. But why I still able to see the component on top of the JPanel?

you would gave to block the paint methods of all the children which
might be invoked independently of the JPanel container if their values

I trust you are just experimenting. The proper way to hide things is
with setVisible( false ).
Roedy Green Canadian Mind Products
Most of computer code is for telling the computer
what do if some very particular thing goes wrong.