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


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

Re: java.awt.Frame - How to repaint without background update

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail
From supercalifragilisticexpialadiamaticonormalizeringelimatisticantations <supercalifragilisticexpialadiamaticonormalizeringelimatisticantations@averylongandannoyingdomainname.com>
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 <j1gkje$gfe$1@speranza.aioe.org> (permalink)
References <j1gjd9$n0c$1@news.onet.pl>
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

Show key headers only | View raw


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?

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


Thread

java.awt.Frame - How to repaint without background update MaciekL <__nospam__maclab@o2.pl> - 2011-08-05 13:15 +0200
  Re: java.awt.Frame - How to repaint without background update supercalifragilisticexpialadiamaticonormalizeringelimatisticantations <supercalifragilisticexpialadiamaticonormalizeringelimatisticantations@averylongandannoyingdomainname.com> - 2011-08-05 07:36 -0400

csiph-web