🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: display images without jbcl

#3510
From: Thomas Franke
Date: Thu, 11 Dec 1997 00:00
41 lines
1553 bytes
Thank you very much!
I ll try  it out rigrht now!.
And thanks for earlier advice, too! Thomas

Rich Wilkman wrote:

> Thomas:
>
> It won't work in applets in Netscape, but Component has a getResource()
> mechansim that can be used.  Something like:
>
>   URL url = this.getClass().getResource("image/ColoradoAvalanche.jpg");
>   theImage = getToolkit().createImage((ImageProducer)url.getContent());
>
>   mt = new MediaTracker(this);
>   mt.addImage(theImage,0);
>
>   try{
>      mt.waitForAll(0);
>   }
>   catch(Exception ex){
>      ex.printStackTrace();
>   }
>
> In this case "this" refers to an Applet which is really a panel.
> Components (and therefore Containers) also have createImage mechanisms
> that you may wish to investigate.  There are also Applet specific image
> loading mechanisms.
>
> -Rich
>
> Thomas Franke wrote:
> >
> > I want to display GIFs within a panel without using imageControl or
> > other jbcl components due to their
> > enormous archive-size.
> >
> > Does anyone have any idea???
> >
> > Thomas
Technical Details
Message-ID: <348F9B55.9C57FA93@brockhaus-ag.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <348E5B70.AC08B151@brockhaus-ag.de> <348ED7C6.A0F64CCC@corp.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,6edee27a736f54f
X-Google-Attributes: gid1089d0,public
From: Thomas Franke <tfranke@brockhaus-ag.de>
Subject: Re: display images without jbcl
Date: 1997/12/11
Message-ID: <348F9B55.9C57FA93@brockhaus-ag.de>
X-Deja-AN: 297162232
References: <348E5B70.AC08B151@brockhaus-ag.de> <348ED7C6.A0F64CCC@corp.borland.com>
Organization: Brockhaus Software & Consulting
Newsgroups: borland.public.jbuilder.java.api