List of usage examples for javafx.scene.layout Region setBorder
public final void setBorder(Border value)
From source file:Main.java
/** * Utility method to temporarily add a visible border around a region. * * @param region/*from w w w .ja va 2 s . c om*/ * The region getting the border. * @param color * the color of the border. */ public static void addDummyBorder(final Region region, final Color color) { region.setBorder(new Border(new BorderStroke(color, BorderStrokeStyle.SOLID, null, new BorderWidths(5)))); // MAGIC_NUMBER }