🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Graphics Won't Load

#3049
From: Howard Weiner
Date: Fri, 05 Jun 1998 00:00
29 lines
1238 bytes
Help!!!

I'm having difficulty getting a GIF to load, and it must be something
stupid. I just can't determine why. Hopefully, some good person will end my
misery....

I have a code snippet (JB 1.01) that I've seen commonly used elsewhere:


          oNodeIcon    = ImageLoader.loadFromResource("tree.gif",

this);
          ImageLoader.waitForImage(this,oNodeIcon);

where oNodeIcon is defined as:

         private Image      oNodeIcon;

The image, Tree.gif, is located in the same project folder as the .jpr file,
and all of the source and bytecode files. In debug mode, oNodeIcon remains
null even after waitForImage() is invoked. In fact, waitForImage returns a
false indicating an error. Just what error, however, is beyond me.

What have I missed?

TIA

HDW
Technical Details
Message-ID: <6l8tcd$s6p8@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,f4fd60736feddf29,start
X-Google-Attributes: gid1089d0,public
From: "Howard Weiner" <HDWeiner@erols.com>
Subject: Graphics Won't Load
Date: 1998/06/05
Message-ID: <6l8tcd$s6p8@forums.borland.com>
X-Deja-AN: 359826758
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.api