title: Use modena.css with JavaFX2 and Java 7
body: <p>I am developing a JavaFX application. Unfortunately, I am restricted to Java 7, thus also restricted to JavaFX2. However, I would like to include the default theme from JavaFX 8 <code>Modena</code>. Hence, I downloaded the modena.css and put it into my <code>src/main/resources/</code> folder. Now I would like to set this css as my default theming.</p>
  
  <p>Seeing <a href="https://stackoverflow.com/questions/17297777/how-to-set-javafx-default-skin">How to set JavaFX default skin</a> I tried setting</p>
  
  <pre><code>System.setProperty( "javafx.userAgentStylesheetUrl","src/main/resources/modena.css")
  </code></pre>
  
  <p>but the styling wasn't any different.</p>
  
  <p>How can I set another default css file other than caspian using Java 7 and JavaFx 2?</p>