Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Embedding Web Browser (prefer Firefox) in Java Application.

Reply
Thread Tools

Embedding Web Browser (prefer Firefox) in Java Application.

 
 
Daniel Pitts
Guest
Posts: n/a
 
      05-05-2009
I was wondering about and hoping for a way to embed or control a web
browser from within a Java application. It doesn't have to be
cross-platform, but that is a bonus.

It also doesn't have to be Firefox, but that is a big bonus. My project
is basically going to monitor some of my favorite sites, and when they
change, download the latest version of them for offline viewing. It
would be nice if there could be a good integration with FF's rendering
engine.

Thanks,
Daniel.
--
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>
 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      05-05-2009
On May 4, 9:23*pm, Daniel Pitts
<newsgroup.spamfil...@virtualinfinity.net> wrote:
> I was wondering about and hoping for a way to embed or control a web
> browser from within a Java application. It doesn't have to be
> cross-platform, but that is a bonus.


Check out the https://jdic.dev.java.net/ demo 'Browser'.
"This demo embeds a WebBrowser component to render the
HTML page specified in the URL text field. "
....
"Note: To run this demo, you must use Internet Explorer
or Mozilla (1.4 or a higher version) on Windows platforms;
use Mozilla (1.4 or a higher version) on Linux/Unix
platforms."

F-U set to c.l.j.g. only.

--
Andrew T.
pscode.org
 
Reply With Quote
 
 
 
 
Nigel Wade
Guest
Posts: n/a
 
      05-05-2009
Daniel Pitts wrote:

> I was wondering about and hoping for a way to embed or control a web
> browser from within a Java application. It doesn't have to be
> cross-platform, but that is a bonus.
>
> It also doesn't have to be Firefox, but that is a big bonus. My project
> is basically going to monitor some of my favorite sites, and when they
> change, download the latest version of them for offline viewing. It
> would be nice if there could be a good integration with FF's rendering
> engine.
>


Do you need to integrate the rendering? Could you use an external FF
application?

As I understand it (it's not something I've even looked into, never mind
actually tried) you can communicate with a running FF process via a socket.
Also, if you run FF and FF determines that another instance is already running
on that display then instead of starting a new instance it sends a message to
the running app. asking it to display the requested URL.

--
Nigel Wade
 
Reply With Quote
 
Jarrick Chagma
Guest
Posts: n/a
 
      05-07-2009
"Daniel Pitts" <> wrote in message
news:vbPLl.2622$%_...
> I was wondering about and hoping for a way to embed or control a web
> browser from within a Java application. It doesn't have to be
> cross-platform, but that is a bonus.
>
> It also doesn't have to be Firefox, but that is a big bonus. My project
> is basically going to monitor some of my favorite sites, and when they
> change, download the latest version of them for offline viewing. It would
> be nice if there could be a good integration with FF's rendering engine.


Have you heard about JWebPane? It's a new Swing component that's due in
Java 7 I believe and is basically a Java front end to a WebKit browser pane.
I realise you cannot use it now but you may like to factor it in to your
longer term plans.

--
Regards,

Jarrick

"If you want the car in front of you to go faster, try to overtake it."
__________________________________________________ ________________________________
[] (Lose your prejudice before
emailing me)

 
Reply With Quote
 
Daniel Pitts
Guest
Posts: n/a
 
      05-07-2009
Jarrick Chagma wrote:
> "Daniel Pitts" <> wrote in
> message news:vbPLl.2622$%_...
>> I was wondering about and hoping for a way to embed or control a web
>> browser from within a Java application. It doesn't have to be
>> cross-platform, but that is a bonus.
>>
>> It also doesn't have to be Firefox, but that is a big bonus. My
>> project is basically going to monitor some of my favorite sites, and
>> when they change, download the latest version of them for offline
>> viewing. It would be nice if there could be a good integration with
>> FF's rendering engine.

>
> Have you heard about JWebPane? It's a new Swing component that's due in
> Java 7 I believe and is basically a Java front end to a WebKit browser
> pane. I realise you cannot use it now but you may like to factor it in
> to your longer term plans.
>

That's an idea. I hadn't heard of it before. My application is mostly
for my own use, so I have no problem using not-yet-stable components for
now. I'll look into it.

Thanks,
Daniel.

--
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
multi-platform browser embedding Joe P. Cool Python 1 07-06-2008 12:15 PM
Embedding web browser in applet vidhi Java 5 10-05-2006 04:28 AM
Embedding a database into a Java web start application Dobedani Java 4 09-13-2006 07:53 AM
Embedding an Application in a Web browser rodmc Python 18 02-16-2006 02:13 PM
Embedding an Application in a Web browser Daniel Nogradi Python 1 02-14-2006 03:42 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57