Article View: borland.public.jbuilder.java.swing
Article #10616Re: Opening a browser from a Hyperlink in an JeditorPane
From: Lois Neo
Date: Thu, 02 Sep 1999 00:00
Date: Thu, 02 Sep 1999 00:00
23 lines
1280 bytes
1280 bytes
instead of setPage(url) of JEditorPane,
try using Runtime.getRunTime().exec("start "+url_string);
this should open up your default browser.
--
hope it helps
Lois
Chitra Amarnath <chitra.amarnath@enterpriseworks.com> wrote in message
news:37CC39A8.5526FE71@enterpriseworks.com...
> Hi
>
> I am loading an HTML page in a jEditorPane within a frame in a Java
> application.
> How would I open a browser (Ie or Netscape) when a Hyperlink in this
> page is clicked.
> I am able to open the nextpage within the editorpane itself. But i am
> trying to open a new browser window.
>
> I would really appreciate any help.
> Thanks in advance
> Chitra.
Technical Details
Message-ID:
<7qlie4$f3h1@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37CC39A8.5526FE71@enterpriseworks.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,cf298375fa059652 X-Google-Attributes: gid111d45,public From: "Lois Neo" <slneo@cybergal.com> Subject: Re: Opening a browser from a Hyperlink in an JeditorPane Date: 1999/09/02 Message-ID: <7qlie4$f3h1@forums.borland.com> X-Deja-AN: 520109805 References: <37CC39A8.5526FE71@enterpriseworks.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Reply-To: "Lois Neo" <slneo@cybergal.com> Newsgroups: borland.public.jbuilder.java.swing