Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Knute Johnson Newsgroups: comp.lang.java.programmer Subject: Re: java.awt.Frame - How to repaint without background update Date: Fri, 05 Aug 2011 08:30:47 -0700 Organization: A noiseless patient Spider Lines: 17 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 5 Aug 2011 15:30:38 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="mz/LDSJwiWnk3Jnnqg7x+Q"; logging-data="17652"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+LH9UeHKApPbkIwZCLevQq" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: Cancel-Lock: sha1:m/Xmw60z9wfzZrh2Gh+kz2pxFMY= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6809 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. I too am curious why you want to use AWT instead of Swing. -- Knute Johnson