Article View: borland.public.jbuilder.java.api
Article #2406Re: How do I write HTML to a browser ...
From: Tom Douglas
Date: Wed, 25 Oct 2000 00:00
Date: Wed, 25 Oct 2000 00:00
34 lines
1912 bytes
1912 bytes
You can try getting the Applet's AppletContext and using its showDocument
method.
import java.applet.*;
import java.net.*;
class TestingApp extends Applet {
AppletContext ac = this.getAppletContext();
// create an instance of URL class with the URL of the HTML you want to show
// and create a string indicating where you'd like to show the HTML
// which can be _self, _blank, _top, _parent or a named window.
ac.showDocument(url,string);
}
Tom Douglas
"Hilton Evans" <hfevans@SPAMNOT.ici.net> wrote in message
news:39f6d3f3_1@dnews...
> "pnichols" <pwnichols@mail.gw.total-web.net> wrote in message
> news:39eea4a3_1@dnews...
> > Integrate Java Script with your Java Code by declaring some params
within
> > the HTML page and setting these properties with java Script .. Then use
> > Document.write(ThoseParams) in your Java Script.
> I was looking for a way to do it without JavaScript.
> In any case thanks much for the reply.
>
>
> --
> Hilton Evans
> -----------------------------------------------
> ChemPen Chemical Structure Software
> http://home.ici.net/~hfevans/chempen.htm
>
Technical Details
Message-ID:
<D3BJ5.85928$JS3.12986819@typhoon.nyroc.rr.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39dd020b_2@dnews> <39eea4a3_1@dnews> <39f6d3f3_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,e6493c64e7d69032 X-Google-Attributes: gid1089d0,public From: "Tom Douglas" <tdouglas@rochester.rr.com> Subject: Re: How do I write HTML to a browser ... Date: 2000/10/25 Message-ID: <D3BJ5.85928$JS3.12986819@typhoon.nyroc.rr.com> X-Deja-AN: 685656844 References: <39dd020b_2@dnews> <39eea4a3_1@dnews> <39f6d3f3_1@dnews> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Complaints-To: abuse@rochester.rr.com X-Trace: typhoon.nyroc.rr.com 972479843 204.210.150.160 (Wed, 25 Oct 2000 09:17:23 EDT) Organization: Time Warner Road Runner - Rochester NY X-MSMail-Priority: Normal NNTP-Posting-Date: Wed, 25 Oct 2000 09:17:23 EDT Newsgroups: borland.public.jbuilder.java.api