每当运行我的应用程序SWT使用webkit时,我都希望使SWT 4.4.2浏览器在Linux(Ubuntu 14.o4 LTS)上使用Mozilla。 知道如何使SWT使用Mozilla吗?
作为示例,我正在使用SWT的以下代码打开嵌入式浏览器。
Linux Ubuntu版本
public class DisplayMozillaVersion {
public static void main(String[] args) {
Device.DEBUG = true;
Display display = new Display();
Shell shell = new Shell(display);
System.out.println(">>>Snippet creating SWT.MOZILLA-style Browser");
try {
new Browser(shell, SWT.MOZILLA);
System.out.println(">>>succeeded");
} catch (Error e) {
System.out.println(">>>This failed with the following error:");
e.printStackTrace();
System.out.println("
Snippet creating SWT.NONE-style Browser");
try {
new Browser(shell, SWT.NONE);
System.o