Example #1
0
  /** Initialize Browser Component. */
  private void initialize() {
    browser = new Browser();
    bView = new BrowserView(browser);

    bView.setBackground(Color.BLACK);

    setBackground(Color.BLACK);

    setLayout(new BorderLayout());

    add(bView, BorderLayout.CENTER);

    browser.loadHTML(getHTMLContext());
  }
Example #2
0
 @Override
 public void changeHtmlContent(String htmlContent) {
   browser.loadHTML(htmlContent);
 }