All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.xhtmlrenderer.demo.browser.BrowserSandboxLauncher Maven / Gradle / Ivy

There is a newer version: 9.11.2
Show newest version
package org.xhtmlrenderer.demo.browser;

/**
 * Entry point for launching Browser application in a sandboxed
 * environment; use instead of BrowserStartup in that case.
 * Disables or removes menu items and controls that are not
 * useful in a sandboxed environment.
 *
 * @author Patrick Wright
 */
public class BrowserSandboxLauncher {
    public static void main(String[] args) {
        BrowserStartup bs = new BrowserStartup();
        bs.initUI();

        bs.panel.url.setVisible(false);
        bs.panel.goToPage.setVisible(false);
        bs.actions.open_file.setEnabled(false);

        bs.launch();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy