Article View: borland.public.jbuilder.java.swing
Article #12759Re: Open URL in new JFrame
From: Ed Serzo
Date: Fri, 13 Nov 1998 00:00
Date: Fri, 13 Nov 1998 00:00
43 lines
1745 bytes
1745 bytes
Hello John --
I know of two choices of how to do this in an application (someone
already followed up with doing it in an applet)
The first is to call the windows Start command (yes, this will render
your application particular to one platform -- but what you could do is
include a script with the application that does the start function on
another platform)
that is : call Runtime.getRuntime().exec("start netscape [file or
address]")
-- note this tip was taking from the Java Developer Connection question
of the week #15
OR
you could use the hotjava bean in your application to be the browser.
Essentially then when you create your JFrame you construct a hotjava
object within the JFrame. The hotjava HTML component can be found at
http://www.javasoft.com/products/hotjava/index.html
There might be other browser beans available on the market -- in
particular there's a group of people working on a pure java
implementation of Netscape.. .I believe the site is
www.jazilla.org
Hope that helps! Have fun
Ed
John Smith wrote:
> Is it possible to open a URL i.e. (http://www.whatever.com) in a new
> JFrame?
>
> Thanks in advance.
Technical Details
Message-ID:
<364C588C.51CEC6E9@pilot.msu.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<364B522B.A828E329@hotmail.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,f1db3f7c2544b95a X-Google-Attributes: gid111d45,public From: Ed Serzo <serzoedw@pilot.msu.edu> Subject: Re: Open URL in new JFrame Date: 1998/11/13 Message-ID: <364C588C.51CEC6E9@pilot.msu.edu> X-Deja-AN: 411487563 Content-Transfer-Encoding: 7bit References: <364B522B.A828E329@hotmail.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing