Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: supercalifragilisticexpialadiamaticonormalizeringelimatisticantations Newsgroups: comp.lang.java.programmer Subject: Re: java.awt.Frame - How to repaint without background update Date: Fri, 05 Aug 2011 07:36:14 -0400 Organization: supercalifragilisticexpialadiamaticonormalizeringelimatisticantations Lines: 19 Message-ID: References: NNTP-Posting-Host: 9fPTa5hFwgdJyH6NLKCmuQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: WinVN 0.99.12z (x86 32bit) X-Notice: Filtered by postfilter v. 0.8.2 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6806 On 05/08/2011 7:15 AM, MaciekL wrote: > Hi, > > I'm trying to create simple application with BufferedImage that already > contains some graphical content. > During "repaint" operation, created image should be > redrawn on the screen (without additional graphics functions). > > It seems to be easy, but there is something wrong. > During "repaint" operation the window "blinks". It seems that > 'background' is displayed before image is drawn. > > "javax.swing.JFrame" solves the issue, but I would like to > solve this with basic "java.awt.Frame". You're getting bitten by java.awt.Frame's lack of double buffering. I'm not sure there's any remotely easy solution other than using JFrame. What is your reason for wanting to avoid JFrame?