Stackpane Javafx Example, Set the alignment of the stack_pane using setAlignment () function.