1

I am making a desktop app using JavaFX as the GUI Framework. I wan't my app to scale at any DPI, so I want sharp icons whether the app is run on a 1024x768 or 4K screen. In HTML achieving this is pretty easy with SVG, however I have not found a way to display scalable graphics directly in JavaFX.

What is the best way to achieve this? The app will obviously contain many icons, so I need it to be light and fast. Frankly, I haven't found anything close to what I want searching Google.

Thanks for your help!

olivierr91
  • 1,243
  • 3
  • 13
  • 29

2 Answers2

2

Here is a library that you might want to have a look at: JavaFXSVG

mipa
  • 10,369
  • 2
  • 16
  • 35
0

In addition to mipa's answer, I have similarly solved my problem using svg2fxml, available here: https://tomsondev.bestsolution.at/2012/08/22/svg-to-fxml-converter-as-commandline-util/

olivierr91
  • 1,243
  • 3
  • 13
  • 29