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


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

Re: can't stop JPanel paint

From supercalifragilisticexpialadiamaticonormalizeringelimatisticantations <supercalifragilisticexpialadiamaticonormalizeringelimatisticantations@averylongandannoyingdomainname.com>
Newsgroups comp.lang.java.programmer
Subject Re: can't stop JPanel paint
Date 2011-07-14 08:37 -0400
Organization supercalifragilisticexpialadiamaticonormalizeringelimatisticantations
Message-ID <ivmnus$q7d$1@speranza.aioe.org> (permalink)
References <728e86bb-daed-40cd-b8a2-d2bf08059dd5@glegroupsg2000goo.googlegroups.com>

Show all headers | View raw


On 14/07/2011 7:43 AM, Peter Cheung wrote:
> 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?

A component in a container such as a panel paints itself separately, not 
as part of the panel's paint. If the area is obscured and then 
uncovered, a repaint event is sent to the panel first, then to its 
children. Even if the panel itself ignores the event the children 
generally won't.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next 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