Example usage for javafx.scene.web WebView prefWidthProperty

List of usage examples for javafx.scene.web WebView prefWidthProperty

Introduction

In this page you can find the example usage for javafx.scene.web WebView prefWidthProperty.

Prototype

public DoubleProperty prefWidthProperty() 

Source Link

Document

Preferred width property.

Usage

From source file:ijfx.ui.widgets.PluginInfoPane.java

private void installWebView(WebView view) {
    this.webView = view;

    view.prefWidthProperty().bind(widthProperty());
    view.prefHeightProperty().bind(heightProperty());
    setCenter(view);// w  ww.j a v  a 2 s  .c  om
    webView.addEventHandler(MouseEvent.MOUSE_CLICKED, this::onMouseClicked);
    messageDispayer = new RichMessageDisplayer(webView);
    updateWebView();
}