Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #6806
| From | supercalifragilisticexpialadiamaticonormalizeringelimatisticantations <supercalifragilisticexpialadiamaticonormalizeringelimatisticantations@averylongandannoyingdomainname.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: java.awt.Frame - How to repaint without background update |
| Date | 2011-08-05 07:36 -0400 |
| Organization | supercalifragilisticexpialadiamaticonormalizeringelimatisticantations |
| Message-ID | <j1gkje$gfe$1@speranza.aioe.org> (permalink) |
| References | <j1gjd9$n0c$1@news.onet.pl> |
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 | Next — Previous in thread | Find similar
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