Converting from svg format to javafx css svg

Pedro Duque Vieira pedro.duquevieira at
Sat Dec 14 13:00:04 PST 2013


While working in JMetro (Metro like controls for javafx) I have the
following process for creating svg graphics using javafx css:
1- I create the vector graphics in Adobe Illustrator
2- save the file in svg format
3- get the svg path notation from the svg file and use it with javafx
-fx-shape css property

The thing that I haven't still mastered is how does the size of the vector
graphics in Illustrastor translate to the size I have to input in the
-fx-padding css property. I know I have to enter half the value of width
for the left and right and half the value of the height for the top and
bottom but still that doesn't seem to work. It's still more of a process of
trial and error for me.

Thanks in advance.

Pedro Duque Vieira

More information about the openjfx-dev mailing list