FXMLDocumentController.java
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/package fxmlexample;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.text.Text;
/**
*
* @author L
*/publicclassFXMLExampleController {@FXMLprivate Text actiontarget;
@FXMLprotectedvoidhandleSubmitButtonAction(ActionEvent event) {
actiontarget.setText("Sign in button pressed");
}
}
Login.css/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*//*
Created on : Nov 18, 2015, 4:59:48 PM
Author : L
*/.root{
-fx-background-image:url("Tulips.jpg");
}.label{
-fx-font-size:12px;
-fx-font-weight: bold;
-fx-text-fill:#333333;
-fx-effect:dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
}#welcome-text{
-fx-font-size:32px;
-fx-font-family:"Arial Black";
-fx-fill:#818181;
-fx-effect:innershadow( three-pass-box , rgba(0,0,0,0.7) , 6, 0.0 , 0 , 2 );
}#actiontarget{
-fx-fill: FIREBRICK;
-fx-font-weight: bold;
-fx-effect:dropshadow( gaussian , rgba(255,255,255,0.5) , 0,0,0,1 );
}.button{
-fx-text-fill: white;
-fx-font-family:"Arial Narrow";
-fx-font-weight: bold;
-fx-background-color:linear-gradient(#61a2b1, #2A5058);
-fx-effect:dropshadow( three-pass-box , rgba(0,0,0,0.6) , 5, 0.0 , 0 , 1 );
}.button:hover{
-fx-background-color:linear-gradient(#2A5058, #61a2b1);
}