Embedding XULRunner application on Java
Asked Answered
U

6

5

My goal is to get Limewire(JAVA) and Songbird(XULRunner) to run together.

I was thinking the best way is to run the XUL application(songbird) inside a JAVA swing panel. Is there another way?

Would it be better or possible to have the GUI entirely in XUL, and then access my JAVA objects somehow?

How would I go about doing this?

Thanks

Udale answered 17/11, 2008 at 7:33 Comment(0)
B
2

Take a look at JRex, as it might let you peek into a couple of ideas.

Other than that, I'd also research about Rhinohide as well.

Beguine answered 2/2, 2009 at 11:16 Comment(0)
H
2

Take a look at DJ Native Swing, a native Swing implementation using SWT and Xulrunner.

Horselaugh answered 6/1, 2010 at 17:16 Comment(0)
L
0

I am currently researching XUL for a new product and I came across JavaXPCOM which allows Java code to interact with XPCOM objects. I'm still wrapping my head around the Mozilla stack, but from what I understand all XULRunner applications use XPCOM. Therefore, it seems like you should be able to embed Songbird with this approach.

Lieu answered 17/11, 2008 at 9:51 Comment(0)
A
0

The official XUL implementation by Mozilla and is heavily dependent on Gecko. Gecko is not written in Java nor embedded in AWT/Swing/SWT (at least without using JNI).

So, the short answer is: no. You must either use JNI or use heavy, complex and incomplete third party libaries.

However, JavaXPCOM seems to allow embedding Gecko: https://developer.mozilla.org/en/JavaXPCOM But in that case you'll depend on Gecko... and I don't know if that's enough to run Songbird.

Anthropomorphosis answered 26/11, 2008 at 21:7 Comment(0)
B
0

I would examine Limewire's source code. If there's a clean separation between UI and the rest of the application, I would try finding a solution to instantiate and invoke Limewire's non-UI code from within a Songbird extension.

Binaural answered 29/11, 2008 at 18:21 Comment(0)
E
0

I would take a look at eclipse swt's embedding of xulrunner: http://www.eclipse.org/swt/faq.php#whatisbrowser

Eleneeleni answered 2/2, 2009 at 17:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.