"-fx-background-color: #959595;"+
"-fx-font-family: 'Monospaced';");
final VBox vBox = addVBox();
final VBox vBoxRight = addVBoxRight();
textVBox = addTextVBox();
Button goButton = new Button("Transform");
goButton.prefHeight(Double.MAX_VALUE);
goButton.setStyle(" -fx-background-color:" +
"linear-gradient(#686868 0%, #232723 25%, #373837 75%, #757575 100%)," +
"linear-gradient(#020b02, #3a3a3a)," +
"linear-gradient(#9d9e9d 0%, #6b6a6b 20%, #343534 80%, #242424 100%)," +
"linear-gradient(#8a8a8a 0%, #6b6a6b 20%, #343534 80%, #262626 100%)," +
"linear-gradient(#777777 0%, #606060 50%, #505250 51%, #2a2b2a 100%);" +
"=fx-background-insets: 0,1,4,5,6;" +
"=fx-background-radius: 9,8,5,4,3;" +
"=fx-padding: 15 30 15 30;" +
"=fx-font-family: 'Helvetica';" +
"=fx-font-size: 18px;" +
"=fx-font-weight: bold;" +
"=fx-text-fill: white;" +
"=fx-effect: dropshadow( three-pass-box , rgba(255,255,255,0.2) ," +
"1, 0.0 , 0 , 1);");
goButton.setPrefWidth(100);
goButton.setDefaultButton(true);
EventHandler<ActionEvent> goAction;
goAction = new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
String sourceText = (useTextArea)? textArea.getText() : locationField.getText();
runRenderingTask(sourceText, !useTextArea);
}
};
goButton.setOnAction(goAction);
locationField.setOnAction(goAction);
eng.locationProperty().addListener(new ChangeListener<String>() {
@Override public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
//locationField.setText(newValue);
}