Example usage for javafx.scene.paint Color DARKRED

List of usage examples for javafx.scene.paint Color DARKRED

Introduction

In this page you can find the example usage for javafx.scene.paint Color DARKRED.

Prototype

Color DARKRED

To view the source code for javafx.scene.paint Color DARKRED.

Click Source Link

Document

The color dark red with an RGB value of #8B0000

Usage

From source file:org.openwms.client.fx.core.controller.LoginController.java

/**
 * FIXME [scherrer] Comment this//from  www.  ja v  a2s  .c o m
 * 
 */
@FXML
public void login() {
    Authentication authToken = new UsernamePasswordAuthenticationToken(username.getText(), password.getText());
    try {
        authToken = authenticationManager.authenticate(authToken);
        SecurityContextHolder.getContext().setAuthentication(authToken);
    } catch (AuthenticationException e) {
        header.setText("Login failure, please try again:");
        header.setTextFill(Color.DARKRED);
        return;
    }
    dialog.close();
    screens.showScreen(screens.customerDataScreen());
}

From source file:nars.rl.util.ThreeDView.java

private void buildAxes() {
    final PhongMaterial redMaterial = new PhongMaterial();
    redMaterial.setDiffuseColor(Color.DARKRED);
    redMaterial.setSpecularColor(Color.RED);

    final PhongMaterial greenMaterial = new PhongMaterial();
    greenMaterial.setDiffuseColor(Color.DARKGREEN);
    greenMaterial.setSpecularColor(Color.GREEN);

    final PhongMaterial blueMaterial = new PhongMaterial();
    blueMaterial.setDiffuseColor(Color.DARKBLUE);
    blueMaterial.setSpecularColor(Color.BLUE);

    final Box xAxis = new Box(240.0, 1, 1);
    final Box yAxis = new Box(1, 240.0, 1);
    final Box zAxis = new Box(1, 1, 240.0);

    xAxis.setMaterial(redMaterial);/*from  www  .  jav a 2s  . c  o  m*/
    yAxis.setMaterial(greenMaterial);
    zAxis.setMaterial(blueMaterial);

    axisGroup.getChildren().addAll(xAxis, yAxis, zAxis);
    world.getChildren().addAll(axisGroup);
}