Rajesh
Rajesh

Reputation: 632

How to embed an XUL Application in SWT Browser?

I want to host my XUL application inside another Java application that uses SWT.

I know that it is possible to embed the browser windows using SWT.MIZILLA as a flag.

But how do I host my XUL application inside that browser window?

Upvotes: 1

Views: 619

Answers (1)

Mohsen
Mohsen

Reputation: 3552

You should be able to load your XUL file using Browser.setUrl() method. If you are on Linux, no need to specify SWT.MOZILLA (as embedded Firefox is also capable of loading XUL). Be careful when using SWT 3.7 (its M1 is just released), as it uses WebKitGtk+ as the default browser on Linux.

Upvotes: 2

Related Questions