Article View: borland.public.jbuilder.java.api
Article #3060Re: Panel Flicker Problem...
From: JRadical
Date: Thu, 16 Apr 1998 00:00
Date: Thu, 16 Apr 1998 00:00
38 lines
1593 bytes
1593 bytes
What you might be looking for is update(); update normally does
1) clear screen via setColor(Color.black);fillrect(x,y,w,h,this);
2) paint();
try this....
publid void update(Graphics g)
{
paint(g);
}
this will prevent any clearing of the screen... I'm not sure if this is what
you want, and I
don't even think I know what i'm tlaking about... nevertheless, I hope it
helps..
regards-
JR-
PS: Double buffering only paints to a memory location before it puts it to
screen, you still have
to stop Update from clearing the screen.
Xavier Witdouck wrote in message <3535E1B2.2AE36858@gic-net.com>...
>I have a panel as a child to a JCScrolledWindow which is added to a
>frame. When I scroll the panel in the ScrolledWindow there is a serious
>flicker problem. I have set the double buffer property for all panels
>to TRUE but this does not seem to help. I have tried to modify the
>paint events for the panel but this still does not seem to help. Can
>anyone shed some lighton how this can be solved.
>
>Kind regards,
>
>Xavier Witdouck
>DataCraft Design
>United Kingdom
>
Technical Details
Message-ID:
<6h5pqv$96620@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3535E1B2.2AE36858@gic-net.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,a97d2a8aec2a618c X-Google-Attributes: gid1089d0,public From: "JRadical" <71043.167@compuserve.com> Subject: Re: Panel Flicker Problem... Date: 1998/04/16 Message-ID: <6h5pqv$96620@forums.borland.com> X-Deja-AN: 344788611 References: <3535E1B2.2AE36858@gic-net.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Radical Systems Corp Newsgroups: borland.public.jbuilder.java.api