Re: Re: Borders / Strokes

goddard at goddard at
Mon May 28 23:38:43 PDT 2012

Hi Jasper,

thanks for the reply.

Regards, Jiri

------------ Původní zpráva ------------
Od: Jasper Potts <jasper.potts at>
Předmět: Re: Borders / Strokes
Datum: 28.5.2012 20:35:01
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;");


On May 28, 2012, at 6:27 AM, goddard at 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