Exemplo n.º 1
0
  /** Complete for browser usage */
  public HelpBrowserFrame(
      final String langlocale, final String zipfile, final String startpage, boolean plugin) {
    this.plugin = plugin;

    this.browser = new HelpBrowser(this, langlocale, zipfile, startpage);

    setIconImage(MiscToolkit.loadImageIcon("/data/toolbar/help-browser.png").getImage());

    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
      Init();
      if (!plugin) {
        // standalone - fix size
        this.setSize(new Dimension(780, 550));
      } else {
        loadWindowState();
      }
    } catch (final Throwable e) {
      logger.log(Level.SEVERE, "Exception thrown in constructor", e);
    }
  }
Exemplo n.º 2
0
 private void refreshUpdateState() {
   MiscToolkit.setContainerEnabled(getUpdatePanel(), automaticBoardUpdateCheckBox.isSelected());
 }