From owner-freebsd-java Tue Jul 14 09:35:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA28855 for freebsd-java-outgoing; Tue, 14 Jul 1998 09:35:39 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from sussie.datadesign.se (ns.datadesign.se [194.23.109.130]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA28850 for ; Tue, 14 Jul 1998 09:35:36 -0700 (PDT) (envelope-from kaj@interbizz.se) Received: from localhost (sussie.datadesign.se [194.23.109.130]) by sussie.datadesign.se (8.8.5/8.8.7) with ESMTP id SAA02791; Tue, 14 Jul 1998 18:33:02 +0200 (MET DST) To: joe.shevland@horizonti.com Cc: java@FreeBSD.ORG Cc: kaj@interbizz.se Subject: Re: Q: AppletContext.showDocument(URL, String) From: Rasmus Kaj In-Reply-To: Your message of "Tue, 30 Jun 1998 09:11:49 +1000" <35981F35.BA89F3E0@horizonti.com> References: <35981F35.BA89F3E0@horizonti.com> X-Mailer: Mew version 1.92.4 on XEmacs 20.4 (Emerald) X-URL: http://www.e.kth.se/~kaj/ X-Phone: +46 (0)8 - 692 35 09 / +46 (0)70 640 49 14 X-Attribution: Kaj X-Face: M9cR~WYav<"fu%MaslX0`43PAYY?uIsM8[#E(0\Xuy9rj>4gE\h3jm.7DD?]R8*^7T\o&vT U@[53Dwkuup4[0@gw#~kyu>`unH?kVj9CJa02(h>Ki\+i=%rn%sDf^KC.!?IHkKjMAbkd\jgmphp^' d|Q;OeXEAhq?ybGqOs1CHb6TJT42'C`Krnk61//AOfXtNjj/t'`5>Vw0QX!dKfOL$.f+S"LIuwR<;I Z0Qnnx(F^F]o@*V%TUtEV'1Z[TkOl^FFV9Z~A[b19%}uP*,huCU Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19980714183301K.kaj@interbizz.se> Date: Tue, 14 Jul 1998 18:33:01 +0200 X-Dispatcher: imput version 971024 Lines: 60 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Sorry this took me so long, but here I am again ... >>>>> "J" == Joe 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