public String getAbsolutePath(Object pkg_obj,String filename) {
		if (filename.indexOf("/")==0
		||   (filename.indexOf("://")>=0 && filename.indexOf("://")<=5) ) {
			// path starts with "/" or protocol: do not change
			return filename;
		} else {
			// path does not start with "/": prepend package name
			// with "." in package replaced by fileseparator
			// this doesn't work as getPackage may return null for applets
			// String pkgname = getClass().getPackage().getName();
			String pkgname = pkg_obj.getClass().getName();
			String pkgname_path="";
			Vector tokens = tokenizeString(pkgname,'.');
			//StringTokenizer toker = new StringTokenizer(pkgname,".");
			for (Enumeration e=tokens.elements();e.hasMoreElements();) {
				String tok = (String)e.nextElement();
				if (e.hasMoreElements()) {
					pkgname_path += tok + "/";
				}
			}
			return "/" + pkgname_path + filename;
		}
	}