🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16042

Re: Why this doesn't work

#16042
From: Alexis R�os
Date: Fri, 09 Apr 1999 00:00
29 lines
1456 bytes
Thank you for your help.

Good luck
Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no> wrote in message
news:u3e2a6xti.fsf@sds.no...
> "Alexis Rios" <alexr@coqui.net> writes:
>
> > I'm trying to use some text at the applet using double buffering. The
thing
> > is that the applet is always displaying this message:
> >
> > My counter is: 1
> >
> > and although is incrementing the variable counter, it always display 1
>
> Since you override update() to paint on offGr, the only time the
> Applet's Graphics is used is on the initial paint - repaint events
> will only paint on offGr.
>
> Thus you only see the counter value "1", because everything else is
> painted to the offscreen buffer, and never onscreen.
>
> use
>
> public void update(Graphics g) {
>   paint(g);
> }
>
> instead.
Technical Details
Message-ID: <qanP2.756$Et5.24944@news3.ispnews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7eiopg$24c17@forums.borland.com> <u3e2a6xti.fsf@sds.no>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,b4ed2ae2a3803097
X-Google-Attributes: gidf74b3,public
From: "Alexis R�os" <alexr@coqui.net>
Subject: Re: Why this doesn't work
Date: 1999/04/09
Message-ID: <qanP2.756$Et5.24944@news3.ispnews.com>
X-Deja-AN: 464423558
References: <7eiopg$24c17@forums.borland.com> <u3e2a6xti.fsf@sds.no>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
X-Trace: news3.ispnews.com 923664150 208.138.216.66 (Fri, 09 Apr 1999 09:22:30 EDT)
X-MSMail-Priority: Normal
NNTP-Posting-Date: Fri, 09 Apr 1999 09:22:30 EDT
Newsgroups: borland.public.jbuilder.java.language