Example usage for javafx.scene.effect BlendMode RED

List of usage examples for javafx.scene.effect BlendMode RED

Introduction

In this page you can find the example usage for javafx.scene.effect BlendMode RED.

Prototype

BlendMode RED

To view the source code for javafx.scene.effect BlendMode RED.

Click Source Link

Document

The red component of the bottom input is replaced with the red component of the top input; the other color components are unaffected.

Usage

From source file:Watcher.FXMLDocumentController.java

@FXML
protected void doAdd(MouseEvent event) {
    UrlValidator urlValidator;//from  w ww  .j a v a  2  s . c o  m
    urlValidator = new UrlValidator();
    if (urlValidator.isValid(siteUrl.getText())) {
        siteUrl.setBlendMode(null);
        addItem(new Site(siteUrl.getText()));
        cancelSiteAdd(event);
    } else {
        siteUrl.setBlendMode(BlendMode.RED);
    }
}