You want to create and customize borders around an image.
Create an application to dynamically customized border regions using JavaFX’s CSS styling API.
The following code creates an application that has a CSS editor text area and a border view region surrounding an image. By default the editor’s text area will contain JavaFX styling selectors that create a dashed-blue line surrounding the image. You will have the opportunity to modify styling selector values in the CSS Editor by clicking the Bling! button to apply border settings.
primaryStage.setTitle("Chapter 1-9 Generating Borders"); Group root = new Group(); Scene scene = new Scene(root, 600, 330, Color.WHITE); // create a grid pane GridPane gridpane ...