@@ -0,0 +1,1367 @@
+import org.eclipse.swt.SWT;%0Aimport org.eclipse.swt.SWTError;%0Aimport org.eclipse.swt.browser.Browser;%0Aimport org.eclipse.swt.layout.GridData;%0Aimport org.eclipse.swt.layout.GridLayout;%0Aimport org.eclipse.swt.widgets.Display;%0Aimport org.eclipse.swt.widgets.Shell;%0A%0A%0Apublic class BrowserHTMLFromMemory %7B%0A%0A    public static final String html = %22%3Chtml%3E%3Cbody%3EHello !%3C/body%3E%3C/html%3E%22;%0A%0A    public static void main(String %5B%5D args) %7B%0A        Display display = new Display();%0A%0A        // Make the window%0A        Shell shell = new Shell(display);%0A        shell.setLayout(new GridLayout(1, false));%0A%0A        // Add a widget%0A        Browser browser;%0A        try %7B%0A            //browser = new Browser(shell, SWT.NONE);       // default%0A            //browser = new Browser(shell, SWT.MOZILLA);  // force mozilla%0A            browser = new Browser(shell, SWT.WEBKIT);   // force webkit%0A        %7D catch (SWTError e) %7B%0A            System.out.println(%22Could not instantiate Browser: %22 + e.getMessage());%0A            display.dispose();%0A            return;%0A        %7D%0A        browser.setLayoutData(new GridData(GridData.FILL_BOTH));%0A        browser.setText(html);%0A%0A        // Render the window%0A        shell.open();%0A%0A        while(!shell.isDisposed()) %7B%0A            if(!display.readAndDispatch()) %7B%0A                display.sleep();%0A            %7D%0A        %7D%0A%0A        display.dispose();%0A    %7D%0A%7D%0A

Add a snippet.