org.xhtmlrenderer.demo.browser.BrowserSandboxLauncher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flying-saucer-examples Show documentation
Show all versions of flying-saucer-examples Show documentation
Misc. Flying Saucer example code. It is not deployed with a release.
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