🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1178

Re: how do I draw a JPG to a panel/container

#1178
From: PeterH
Date: Thu, 18 Apr 2002 18:32
40 lines
2564 bytes
Thank you for the link, pointers and patience! :>  I'll check that out this
weekend! :>  Have a good week! :>





"Gillmer J. Derge [TeamB]" <spam@gillmerderge.com> wrote in message
news:3cbee37f_2@dnews...
> "PeterH" <!Sorry-TooMuchSpam!nope@nope.com> wrote in message
> news:3cbe170c$1_2@dnews...
> > I've been hearing things about doing things with a double buffer instead
> of
> > in memory, or objects that are directly being used to display on the
> screen.
> > Could you point me in the right direction to start finding information
> on?
> > Much appreciated.
>
> Double buffering basically means that rather than painting directly to the
> screen you paint to an off-screen image.  The image is then copied to the
> screen at once.  This can help reduce flickering with components that have
> complicated paint methods or with components that display animation.
>
> The good news is that Swing components automatically use double buffering.
> That's another reason to override paintComponent instead of paint.  One of
> the things the paint method does is to manage double buffering for you.
So
> you probably don't need to do anything new with your component.
>
> One place to find out more about double buffering and painting components
> is the section of the Java Tutorial on painting.
>
> http://java.sun.com/docs/books/tutorial/uiswing/overview/draw.html
>
> --
> Gillmer J. Derge [TeamB]
>
>
>
Technical Details
Message-ID: <3cbf1124$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3cb9ef73$1_1@dnews> <MPG.172579c5bd0dc2ea98b534@newsgroups.borland.com> <3cbc80fd$1_2@dnews> <3cbc9afb_2@dnews> <3cbcdf8a_1@dnews> <3cbcf62f_1@dnews> <3cbe170c$1_2@dnews> <3cbee37f_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,422c9cef40be2392
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-04-18 11:35:42 PST
From: "PeterH" <!REMOVEBeforeSending!peter@pchenry.com>
Newsgroups: borland.public.jbuilder.java.api
References: <3cb9ef73$1_1@dnews> <MPG.172579c5bd0dc2ea98b534@newsgroups.borland.com> <3cbc80fd$1_2@dnews> <3cbc9afb_2@dnews> <3cbcdf8a_1@dnews> <3cbcf62f_1@dnews> <3cbe170c$1_2@dnews> <3cbee37f_2@dnews>
Subject: Re: how do I draw a JPG to a panel/container
Date: Thu, 18 Apr 2002 14:32:06 -0400
Lines: 42
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 66.46.195.190
Message-ID: <3cbf1124$1_2@dnews>
X-Trace: dnews 1019154724 66.46.195.190 (18 Apr 2002 11:32:04 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews