Can't add css file in eclipse for JavaFX


Question

You know when you click new in Eclipse and choose other. From there you can add css file. However, for some reason I can't. I have nowhere to choose css for the file. Please help.

1
2
10/12/2014 12:12:04 AM

This code works for me in this situation

scene.getStylesheets().add(YourMainClass.class.getResource("YourCSS.css").toExternalForm());
3
3/31/2015 2:56:57 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon