Example usage for javafx.scene.control Separator setMouseTransparent

List of usage examples for javafx.scene.control Separator setMouseTransparent

Introduction

In this page you can find the example usage for javafx.scene.control Separator setMouseTransparent.

Prototype

public final void setMouseTransparent(boolean value) 

Source Link

Usage

From source file:io.bitsquare.gui.main.overlays.Overlay.java

protected void addSeparator() {
    if (headLine != null) {
        Separator separator = new Separator();
        separator.setMouseTransparent(true);
        separator.setOrientation(Orientation.HORIZONTAL);
        separator.setStyle("-fx-background: #ccc;");
        GridPane.setHalignment(separator, HPos.CENTER);
        GridPane.setRowIndex(separator, ++rowIndex);
        GridPane.setColumnSpan(separator, 2);

        gridPane.getChildren().add(separator);
    }// w  w  w. j a  v  a 2 s  .  co m
}