[RESOLVIDO] JavaFX StyleSheet Carregar


Versão do JavaFX era 2.0 e para usar neste formato tenho que utilizar a partir da versão 2.1

Pessoal,

Estou tentando usar JavaFX 2 com desenvolvimento de UI com fxml, stou tentando carregar uma stylesheet porém ele está apresentando está exception.

java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at com.javafx.main.Main.launchApp(Main.java:453)
	at com.javafx.main.Main.main(Main.java:537)
Caused by: java.lang.RuntimeException: Exception in Application start method
	at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:378)
	at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:27)
	at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:97)
	at java.lang.Thread.run(Thread.java:722)
Caused by: javafx.fxml.LoadException: java.lang.InstantiationException: java.net.URL
	at javafx.fxml.FXMLLoader$InstanceDeclarationElement.constructValue(FXMLLoader.java:609)
	at javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:371)
	at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:1522)
	at javafx.fxml.FXMLLoader.load(FXMLLoader.java:1410)
	at javafx.fxml.FXMLLoader.load(FXMLLoader.java:1762)
	at javafx.fxml.FXMLLoader.load(FXMLLoader.java:1743)
	at javafx.fxml.FXMLLoader.load(FXMLLoader.java:1738)
	at javafxapplication1.JavaFXApplication1.start(JavaFXApplication1.java:33)
	at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:298)
	at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:152)
	at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:119)
	at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
	at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
	at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:62)
	... 1 more
Caused by: java.lang.InstantiationException: java.net.URL
	at java.lang.Class.newInstance0(Class.java:357)
	at java.lang.Class.newInstance(Class.java:325)
	at javafx.fxml.FXMLLoader$InstanceDeclarationElement.constructValue(FXMLLoader.java:607)
	... 14 more

Segue o código da minha fxml

<?xml version="1.0" encoding="UTF-8"?>

<?import java.lang.*?>
<?import java.net.*?>
<?import java.util.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.paint.*?>

<AnchorPane id="AnchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="313.0" prefWidth="500.0" styleClass="form" xmlns:fx="http://javafx.com/fxml" fx:controller="view.MainFXML">
  <children>
    <TextField id="text" fx:id="txtUsuario" layoutX="268.0" layoutY="27.0" prefWidth="200.0" />
    <PasswordField id="text" fx:id="txtSenha" layoutX="268.0" layoutY="62.0" prefWidth="200.0" />
    <Label id="label" fx:id="lblUsuario" layoutX="209.0" layoutY="30.0" text="Usuario" />
    <Label id="label" fx:id="lblSenha" layoutX="209.0" layoutY="65.0" text="Senha" />
  </children>

  <stylesheets>
    <URL value="file:/C:/Users/Bruno/Desktop/teste/style/style.css" />
  </stylesheets>

  <properties>
    <backgroundColor>
      <Color blue="0.000" green="0.000" opacity="0.000" red="0.000" />
    </backgroundColor>
  </properties>
</AnchorPane>