Example usage for javafx.scene.control TextInputControl setStyle

List of usage examples for javafx.scene.control TextInputControl setStyle

Introduction

In this page you can find the example usage for javafx.scene.control TextInputControl setStyle.

Prototype

public final void setStyle(String value) 

Source Link

Document

A string representation of the CSS style associated with this specific Node .

Usage

From source file:de.pixida.logtest.designer.automaton.AutomatonEdge.java

private void setMonospaceIfDesired(final Monospace monospace, final TextInputControl inputField) {
    if (monospace == Monospace.YES) {
        inputField.setStyle("-fx-font-family: monospace");
    }/* w ww .jav a  2 s . com*/
}