Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #6574

Re: can't stop JPanel paint

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: can't stop JPanel paint
Date 2011-07-26 06:30 -0700
Organization Canadian Mind Products
Message-ID <19gt279m2nrd4c14ublavb42s5iec2id6d@4ax.com> (permalink)
References <728e86bb-daed-40cd-b8a2-d2bf08059dd5@glegroupsg2000goo.googlegroups.com>

Show all headers | View raw


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

>Hi
>   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
changed.

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

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar


Thread

can't stop JPanel paint Peter Cheung <cmk128@gmail.com> - 2011-07-14 04:43 -0700
  Re: can't stop JPanel paint supercalifragilisticexpialadiamaticonormalizeringelimatisticantations <supercalifragilisticexpialadiamaticonormalizeringelimatisticantations@averylongandannoyingdomainname.com> - 2011-07-14 08:37 -0400
  Re: can't stop JPanel paint Roedy Green <see_website@mindprod.com.invalid> - 2011-07-26 06:30 -0700

csiph-web