Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #6811
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!postnews.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bos-service1.raytheon.com!bos-service2b.ext.ray.com.POSTED!53ab2750!not-for-mail |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: java.awt.Frame - How to repaint without background update |
| From | Ian Shef <invalid@avoiding.spam> |
| References | <j1gl4o$t0j$1@news.onet.pl> <j1h2au$h7k$1@dont-email.me> |
| Message-ID | <Xns9F388236C6C85vaj4088ianshef@138.125.254.103> (permalink) |
| User-Agent | Xnews/06.08.25 |
| Lines | 23 |
| Date | Fri, 05 Aug 2011 19:48:02 GMT |
| NNTP-Posting-Host | 147.24.143.154 |
| X-Complaints-To | news@ext.ray.com |
| X-Trace | bos-service2b.ext.ray.com 1312573682 147.24.143.154 (Fri, 05 Aug 2011 14:48:02 CDT) |
| NNTP-Posting-Date | Fri, 05 Aug 2011 14:48:02 CDT |
| Organization | Raytheon Company |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6811 |
Show key headers only | View raw
Knute Johnson <september@knutejohnson.com> wrote in news:j1h2au$h7k$1@dont-
email.me:
> On 8/5/2011 4:45 AM, MaciekL wrote:
>> solved:
>>
>> Adding additonal update method makes that Background is not displayed
>>
>> public void update(Graphics g) { paint(g); }
>>
>> Maciek
>>
>
> That's because update() clears the background.
...and, for heavyweight components such as Frame, repaint(...) causes update
(...) to be called.
See "Painting in AWT and Swing" at
http://java.sun.com/products/jfc/tsc/articles/painting/
(but be aware that later versions of Java have reduced some of the
restrictions regarding mixing lightweight and heavyweight components).
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar
Re: java.awt.Frame - How to repaint without background update MaciekL <__nospam__maclab@o2.pl> - 2011-08-05 13:45 +0200
Re: java.awt.Frame - How to repaint without background update Knute Johnson <september@knutejohnson.com> - 2011-08-05 08:30 -0700
Re: java.awt.Frame - How to repaint without background update Ian Shef <invalid@avoiding.spam> - 2011-08-05 19:48 +0000
csiph-web