Article View: borland.public.jbuilder.java.api
Article #838Re: ImageIcon equivalent in AWT
From: George Boutwell
Date: Sun, 15 Sep 2002 03:37
Date: Sun, 15 Sep 2002 03:37
27 lines
2165 bytes
2165 bytes
John McGrath [TeamB] wrote: > On Sat, 14 Sep 2002 17:18:59 -0500, George Boutwell wrote: > > >>But every attempt I made at trying to use Image complained >>about it being an abstract class, or plain old didn't work. >>I guess I'll go bang my head against the wall some more. > > > The implementations of Image are platform-specific, so you do not > instantiate them in your code. You use the createImage() factory > method in the Toolkit class to create them. > > Depending on how you are using the image, you may need to use a > MediaTracker to ensure that the image has been loaded. This does > not happen when you create the image -- the image data is loaded > when needed. I'm starting to see why they have an IconImage in swing... :) Thanks for you help. I'm pretty sure you've given me enough new things I hadn't tried that I can figure it out. At least I'll try and let you know how it comes out. George George
Technical Details
Message-ID:
<3D84008C.1070703@netscape.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!isdnet!news-raspail.gip.net!news.gsl.net!gip.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3D83765D.1030609@netscape.net> <MPG.17ed4ff5883305e098b9f7@newsgroups.borland.com> <3D83B5D3.6050504@netscape.net> <MPG.17ed8b28445cbaec98b9f9@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,89e330da565ac5e7 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-09-14 21:34:55 PST Message-ID: <3D84008C.1070703@netscape.net> Date: Sat, 14 Sep 2002 22:37:48 -0500 From: George Boutwell <gboutwel@netscape.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api Subject: Re: ImageIcon equivalent in AWT References: <3D83765D.1030609@netscape.net> <MPG.17ed4ff5883305e098b9f7@newsgroups.borland.com> <3D83B5D3.6050504@netscape.net> <MPG.17ed8b28445cbaec98b9f9@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.225.28.44 X-Trace: newsgroups.borland.com 1032061073 24.225.28.44 (14 Sep 2002 20:37:53 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!isdnet!news-raspail.gip.net!news.gsl.net!gip.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail