Example usage for javafx.scene.layout Region setBorder

List of usage examples for javafx.scene.layout Region setBorder

Introduction

In this page you can find the example usage for javafx.scene.layout Region setBorder.

Prototype

public final void setBorder(Border value) 

Source Link

Usage

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
}