🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1172

Re: Can I make an invisible control?

#1172
From: Gillmer J. Derge (TeamB)
Date: Sat, 20 Mar 2004 14:52
20 lines
2328 bytes
Ted Byers wrote:
> There is, however, a problem in that the image does not show up at run time.
> From within JBuilder, all I see is a square box where the image ought to be,
> and from within MW IE (started by double clicking the html file for the
> applet) I see a gray square the size the applet ought to be with a little
> red 'X' in the top left corner.

Try getting rid of the ".." in the path in Paul's example.  That is, 
either change it to a full path ("/com/yourcompany/images/TheImage.jpg") 
or move the images directory so it's a subdirectory of the class's 
package and change the path appropriately ("images/TheImage.jpg").  I'm 
not sure if the ".." won't work, but it looked strange to me when I saw it.

Also, make sure the image file actually made it into your project's 
classes directory and/or the JAR file.  I don't see why it wouldn't, but 
it's worth checking, because that would definitely cause this problem if 
it happened.

-- 
Gillmer J. Derge (TeamB)
Technical Details
Message-ID: <405c5ac3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <405b119a$1@newsgroups.borland.com> <405b1413$1@newsgroups.borland.com> <405b1da8$1@newsgroups.borland.com> <405b1f78$1@newsgroups.borland.com> <405b2349$1@newsgroups.borland.com> <405b28d5$3@newsgroups.borland.com> <405b55d4$2@newsgroups.borland.com> <405bfd17@newsgroups.borland.com> <405c4a88@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,713e84ee88d10114
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2004-03-20 07:10:52 PST
Date: Sat, 20 Mar 2004 09:52:55 -0500
From: "Gillmer J. Derge (TeamB)" <spam@gillmerderge.com>
User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Can I make an invisible control?
References: <405b119a$1@newsgroups.borland.com> <405b1413$1@newsgroups.borland.com> <405b1da8$1@newsgroups.borland.com> <405b1f78$1@newsgroups.borland.com> <405b2349$1@newsgroups.borland.com> <405b28d5$3@newsgroups.borland.com> <405b55d4$2@newsgroups.borland.com> <405bfd17@newsgroups.borland.com> <405c4a88@newsgroups.borland.com>
In-Reply-To: <405c4a88@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 64.185.133.13
Message-ID: <405c5ac3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1079794371 64.185.133.13 (20 Mar 2004 06:52:51 -0800)
Lines: 20
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail