Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 1998 18:33:01 +0200
From:      Rasmus Kaj <kaj@interbizz.se>
To:        joe.shevland@horizonti.com
Cc:        kaj@interbizz.se
Subject:   Re: Q: AppletContext.showDocument(URL, String)
Message-ID:  <19980714183301K.kaj@interbizz.se>
In-Reply-To: Your message of "Tue, 30 Jun 1998 09:11:49 %2B1000" <35981F35.BA89F3E0@horizonti.com>
References:  <35981F35.BA89F3E0@horizonti.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Sorry this took me so long, but here I am again ...

>>>>> "J" == Joe  <joe.shevland@horizonti.com> writes:
>>>>> "me" is my orignal text [things in brackets added now]

 me> Well, I think it [ having a working implementation of
 me> AppletContext.showDocument() in appletviewer ] does make sence,
 me> for at least two reasons: 

 me> 1) Debugging: If I debug an applet which use this method, it would
 me> be nice to know when it gets a call. Here, a notice to STDOUT or
 me> STDERR would do nicely.

 J> Java console in Netscape or IE will do this (or java.log in IE 3.0 on
 J> Win). However, I just meant it didn't make sense in your context. It may
 J> well do, I may have just misunderstood (is English your first language?)

Yes, but neither Netscape nor IE (which, afaik, doesn't run on FreeBSD) 
is a correct JDK 1.1, so I prefer to test my own stuff in
appletviewer ...  And no, English is not my first language, Swedish
is.

 me> 2) When running an applet stand-alone. For example, I have
 me> figured out that those 'push-technology' thingys on m$ active
 me> desktop is just [ ... ]

 J> Do you like crashing every two minutes? :)

No, thats (part of) the reason why I want to 'emulate' the stuff on
FreeBSD rather than running windoze ...

 me> [ ... ] XML snippets with reference to an applet [ some text
 me> removed ] If the applet could tell a browser to fetch web pages,
 me> those things would run correct on FreeBSD just like that.

 J> Just checked this [ netscape remote controll ] out; looks fairly
 J> groovy. So you could then do a Runtime.getRuntime().exec(
 J> "netscape -remote ..." ) or similar to control Netscape. The
 J> preceding line is only from memory; it is right in spirit but
 J> maybe not in syntax or API correctness.
 
Yea, so I do my own implementation of AppletContext (it is an
interface), and put this stuff in showDocument() ... But how do I get
the appletviewer to return my implementation of AppletContext to the
Applet? And what do I do with all the other methods? Inherit the
implementation thats used now?  One way to get booth this questions in 
one shot would be to edit the 'default' implementation ... Where do I
find that? The class seems to be sun.applet.AppletViewer, but there is 
no such file in src.zip in the distribution.

It seems like this is not in the part sun thinks an end-user may
fiddle with ...  Is there a legal way to do this?

// Rasmus

-- 
kaj@cityonline.se --------------- Rasmus Kaj - http://www.e.kth.se/~kaj/
 \               CityOnLine IB Production AB - http://www.CityOnLine.se/
  \------------- Im sorry if the correct way of doing things offends you

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980714183301K.kaj>