🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7620

Icon Can't be Displayed

#7620
From: KK
Date: Thu, 14 Jun 2001 09:20
22 lines
1433 bytes
Dear all:

Can anyone know that how to obtain the application's path?
I added some icons to the program such as:

    Icon iconSyn = new ImageIcon("./gif/syn.gif");
    Icon iconSta = new ImageIcon("./gif/sta.gif");
    Icon iconEqv = new ImageIcon("./gif/eqv.gif");

When I call the program within the program directory, the icons are
displayed properly, such as:

./myApp

However, when I call it somewhere else, the icons cannot be displayed:

./home/myAccount/myApp

How can I make it in order to call the program anywhere without any
problems? Please help.

Ken
Technical Details
Message-ID: <3b288253_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,d0d40f67fdb995ac,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-14 02:34:09 PST
From: "KK" <kk@hotmail.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: Icon Can't be Displayed
Date: Thu, 14 Jun 2001 17:20:52 +0800
Lines: 24
Organization: CDS
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.3018.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
NNTP-Posting-Host: 158.140.230.175
Message-ID: <3b288253_1@dnews>
X-Trace: dnews 992510547 158.140.230.175 (14 Jun 2001 02:22:27 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews