Reputation: 21
Sorry for my bad english but I'm italian.
I'm trying to specify a stylesheet into a fxml file in this way
<stylesheets>
<URL value="@../default.css" />
</stylesheets>
but I get this error:
java.lang.RuntimeException: java.net.MalformedURLException: no protocol: ../default.css
Upvotes: 2
Views: 505
Reputation: 209358
getStylesheets
returns a list of String
s, not URL
s. So you need
<stylesheets>
<String fx:value="@../default.css" />
</stylesheets>
Upvotes: 1