Article View: borland.public.jbuilder.java.language
Article #7640Re: How call getCodeBase() method in a JPanel class?
From: Rich Wilkman
Date: Thu, 31 May 2001 23:58
Date: Thu, 31 May 2001 23:58
16 lines
1410 bytes
1410 bytes
Dionisio: You don't. Applet.getCodeBase() returns values specific to the way thhe Applet and it's HTML file are setup. It would be meaningless relative to an instance of JPanel or a child class of JPanel. What are you trying to do? Most likely there are normal Java mechanisms to get the info you want. -Rich Dionisio Barrantes wrote: > > I want call the method getCodeBase(), to build a valid URL, but > getCodeBase() is a method from Applet.class. How can I invoque this method > in a class extended from a JPanel class?.
Technical Details
Message-ID:
<3B16DAB5.3A679DF1@formlessvoid.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!skynet.be!newsfeed1.uni2.dk!newssuck.uni2.dk!dnewsReferences:
<3b16ca0b$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,4ae31bcbd6df5d09 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-31 17:05:54 PST Message-ID: <3B16DAB5.3A679DF1@formlessvoid.com> Date: Thu, 31 May 2001 16:58:45 -0700 From: Rich Wilkman <richw@formlessvoid.com> X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: How call getCodeBase() method in a JPanel class? References: <3b16ca0b$1_1@dnews> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 208.236.69.60 X-Trace: dnews 991353524 208.236.69.60 (31 May 2001 16:58:44 -0700) Lines: 16 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!isdnet!skynet.be!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews