jQuery in Action, 3rd edition
The moose likes JavaFX and the fly likes SVG Path exported to JavaFX not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JavaFX
Bookmark "SVG Path exported to JavaFX not working" Watch "SVG Path exported to JavaFX not working" New topic

SVG Path exported to JavaFX not working

Mark Muggins

Joined: Mar 21, 2003
Posts: 2
Hi all,

I exported a svg image of some hills out of inkscape and into a JavaFX format. The format for javafx file produced is pre 1.2 so I edited the file to make it 1.2 compliant. The issue is I can;t get the path to display. I am not an expert on paths so I can only assume that something is wrong with the path. The class for the hill is below. Originally I could get the hill to display but I needed to extend the image so I took the svg path, copied it, flipped it 180 and pasted to the "end" of the first. No matter what I do now the hill path will not display.

I think maybe the path is too complex? Or am I doing something wrong?

I display this path by calling

The hill gets place in the scene contents of a stage object. Any help appreciated
Philippe Lhoste

Joined: Oct 23, 2009
Posts: 28
I could see your hill (mirrored, but you could mirror it programmatically) with the following code (and your class):

Ah, I had also to make a real function call (was your syntax inherited from pre-release JavaFX?):

I agree. Here's the link: http://aspose.com/file-tools
subject: SVG Path exported to JavaFX not working
It's not a secret anymore!