Borders / Strokes

Jasper Potts jasper.potts at oracle.com
Mon May 28 11:05:30 PDT 2012


Hi Jiri,

At the moment the only API for styling Regions and their subclasses is via CSS. You can use the style property to do it without needing a stylesheet. eg:

StackPane sp = new StackPane();
sp.setStyle("-fx-border-color: red;");

Jasper

On May 28, 2012, at 6:27 AM, goddard at seznam.cz wrote:

> Hi,
> 
> I've got a TilePane that holds StackPane that cointains two ImageViews. I'd like to set a border / stroke around StackPane in the best case, but it doesn't really matter. 
> Is there a way how to do this without using CSS?
> 
> Regards, Jiri



More information about the openjfx-dev mailing list