Article View: borland.public.jbuilder.java.api
Article #1230Re: how do I draw a JPG to a panel/container
From: PeterH
Date: Tue, 16 Apr 2002 13:02
Date: Tue, 16 Apr 2002 13:02
28 lines
1902 bytes
1902 bytes
OH! Ok, that's what I was missing Sunday night! Yup, too late and not enough coffee! Thanks for the info. I'll try that out tonight. "John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message news:MPG.172579c5bd0dc2ea98b534@newsgroups.borland.com... > On Sun, 14 Apr 2002 17:00:07 -0400, PeterH wrote: > > > I thought I could just use a drawImage() method, but I can't > > seem to get it to work. I can get it to work if I use an Icon > > and a JLabel, but I was hoping to avoid using a JLabel for an > > image. > > > > Can I draw an image to a container? Thanks. > > Yes, you can draw an image on any Swing component. Just override the > paintComponent() method and draw it. > > -- > Regards, > > John McGrath [TeamB] > > --------------------------------------------------- > Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<3cbc20df$1_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news-out.visi.com!hermes.visi.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3cb9ef73$1_1@dnews> <MPG.172579c5bd0dc2ea98b534@newsgroups.borland.com>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-16 06:10:14 PST From: "PeterH" <!REMOVEBeforeSending!peter@pchenry.com> Newsgroups: borland.public.jbuilder.java.api References: <3cb9ef73$1_1@dnews> <MPG.172579c5bd0dc2ea98b534@newsgroups.borland.com> Subject: Re: how do I draw a JPG to a panel/container Date: Tue, 16 Apr 2002 09:02:23 -0400 Lines: 30 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: <3cbc20df$1_2@dnews> X-Trace: dnews 1018962143 66.46.195.190 (16 Apr 2002 06:02:23 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news-out.visi.com!hermes.visi.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews