Errrmmm, that's a pretty confusing question?!?! If you try and add a little more detail, maybe with some code we can all make a decent attempt at answering it. T

Dan Poltawski
Greenhorn

Joined: Nov 26, 2002
Posts: 4

posted Nov 26, 2002 09:59:00

0

The getDocumentBase(), is in an object, which is being called by the main class. Both are in seperate directories. If I call getDocumentBase() in the main class, it work. However if called in the sub-class (which is the object). It doesnt work, possibly becasuse its not actually in the base. Im sorry, Im bad at explaining, but code wouldnt help, its just calling of getDocumentBase() doesntwork in a sub-class.

Dan Poltawski
Greenhorn

Joined: Nov 26, 2002
Posts: 4

posted Nov 26, 2002 11:00:00

0

I think the problem is that the getCodeBase() method is specific to Applet. Does anyone have a workaround to get this to work on a subclass (which isnt an applet).

Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521

posted Nov 26, 2002 15:40:00

0

What exactly is it that you are trying to accomplish?

Dan Poltawski
Greenhorn

Joined: Nov 26, 2002
Posts: 4

posted Nov 26, 2002 17:25:00

0

Originally posted by Cindy Glass: What exactly is it that you are trying to accomplish?

Display a picture via an external object

Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521

posted Nov 27, 2002 06:33:00

0

Call getDocumentBase() in the main class and make sure that it is visible to the subclass. For instance you could put it in a static variable. (Of course you already KNOW what package your subclass is in . . .) [ November 27, 2002: Message edited by: Cindy Glass ]

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com