Scene Builder fx:define NPE

When trying to get SceneBuilder to load the following file I get a NPE in SceneBuilder 2.0 GA: https://bitbucket.org/byteit101/sfx/src/f5f5199ed0abbdbbf31a339a4ce358022f916b3a/lib/res/SFX.fxml?at=default
This appears to be because of the fx:define on lies 18-20, and removing it or putting it at the bottom successfully loads in scenebuilder.
Is this going to be fixed or where can I properly report this as a bug?
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

You need now to assign an fx:id to all your Buttons, from the inspector Properties section.
Since you have linked your controller class to your FXML file, from Scene Builder you will get all your @FXML ids from the fx:id ComboBox (menu button).
Jerome

Similar Messages

  • Fxml  ComboBox created in scene builder how to fetch data from database

    Hi Sir, How r u? Hope to be fine. Sir, I have a problem that i want to fetch data in fxml comboBox created in Scene Builder?
    I have used this code in JavaFx 2.0 for comboBox and textField the code is
    ComboBox studentRegId = new ComboBox();
    try{
    stm = db.con.createStatement();
    rs = stm.executeQuery("select * from students order by s_reg_id asc");
    while(rs.next()){               
    for(int i=1; i<=1; i++)
    studentRegId.getItems().add(rs.getString("s_reg_id"));
    }catch(SQLException sqlException){         
    final TextField sRegId = new TextField();
    final String regId[] = new String[1000];
    try{
    stm = db.con.createStatement();
    rs = stm.executeQuery("select * from students order by s_reg_id asc");
    int a = 0;
    while(rs.next()) {
    regId[a] = rs.getString("s_reg_id");
    a++; }
    }catch(SQLException sqlException){         
    studentRegId.getSelectionModel().selectedIndexProperty().addListener(new ChangeListener<Number>(){
    public void changed(ObservableValue ov,Number value, Number new_value){                           
    sRegId.setText(regId[new_value.intValue()]);
    Now, the problem is that I want to use this code in Scene Builder fxml ComboBox .
    Please Help Me!
    I shall be very grate full to you for this kindness.
    Regards

    Hi,
    Ok, so you create your FXML :
    Add a controller property to your root control. (See Code tab in SceneBuilder or direcly in FXML : fx:controller tag)
    Add a fx:id to your controls (your combobox) (First property in SceneBuilder or directly in FXML : fx:id)
    Example :
    <?xml version="1.0" encoding="UTF-8"?>
    <?import java.lang.*?>
    <?import java.util.*?>
    <?import javafx.collections.*?>
    <?import javafx.scene.control.*?>
    <?import javafx.scene.layout.*?>
    <?import javafx.scene.paint.*?>
    <HBox prefHeight="-1.0" prefWidth="-1.0" xmlns:fx="http://javafx.com/fxml" fx:controller="org.lgringo.comboexample.Controler">
      <children>
        <TextField fx:id="text" prefWidth="100.0" />
        <ComboBox fx:id="combo" prefWidth="200.0">
          <items>
            <FXCollections fx:factory="observableArrayList">
              <String fx:value="Item 1" />
              <String fx:value="Item 2" />
              <String fx:value="Item 3" />
            </FXCollections>
          </items>
        </ComboBox>
      </children>
    </HBox>Then, you create your Controler class using @FXML annotation (name of control should be the name of fx:id properties)
    You can do some initialisation in the inherit method "initialize"
    Example :
    package org.lgringo.comboexample;
    import javafx.fxml.FXML;
    import javafx.scene.control.ComboBox;
    import javafx.scene.control.TextField;
    public class Controler {
         @FXML
         // fx:id="combo"
         private ComboBox<String> combo; // Value injected by FXMLLoader
         @FXML
         // fx:id="text"
         private TextField text; // Value injected by FXMLLoader
         @FXML // This method is called by the FXMLLoader when initialization is complete
        void initialize() {
            assert combo != null : "fx:id=\"combo\" was not injected: check your FXML file 'ComboboxExample.fxml'.";
            assert text != null : "fx:id=\"text\" was not injected: check your FXML file 'ComboboxExample.fxml'.";
            // Initialize your logic here: all @FXML variables will have been injected
            combo.getItems().clear();
            combo.getItems().addAll("John Lennon","Mick Jagger","David Bowie");
            combo.getItems().add("Others...");
            text.setText("List : ");
    }Then you use the FXMLLoader class to load your FXML and Controler.
    Example :
    package org.lgringo.comboexample;
    import javafx.application.Application;
    import javafx.fxml.FXMLLoader;
    import javafx.scene.Parent;
    import javafx.scene.Scene;
    import javafx.stage.Stage;
    public class App extends Application {
          * @param args
         public static void main(String[] args) {
              App.launch(args);
         @Override
         public void start(Stage primaryStage) throws Exception {
              Parent root = FXMLLoader.load(getClass().getResource("ComboboxExample.fxml"));
              primaryStage.setTitle("Combo Example");
              primaryStage.setScene(new Scene(root, 300, 275));
              primaryStage.show();
    }More info : http://docs.oracle.com/javafx/2/get_started/fxml_tutorial.htm

  • Scene Builder: cannot edit when I embed a custom control!

    Hi guys, I'm having an issue with Scene Builder and embedded custom controls...
    I have a LoginPanel .fxml/.java module, which contains two re-usable custom controls I've built:
    * StatusZone .fxml/.java
    * LanguageSelector .fxml/.java
    The application runs.
    However, I can't open LoginPanel.fxml to edit it with SceneBuilder v1.1 (developer preview).
    To be specific, in LoginPanel.fxml, I have this data:
    <StatusZone fx:id="statusZone" />
    <LanguageSelector fx:id="languageSelector" />
    SCENARIO 1
    -- LoginPanel.fxml --
    <?import kalungcasev2.view.StatusZone?>
    <?import kalungcasev2.view.LanguageSelector?>
    I get:
    Warning: File 'LoginPanel.fxml' contains references to types that could not be loaded.
    Missing types are [kalungcasev2.view.StatusZone]
    I can click 'Set up classpath', but no matter which folder I choose, it doesn't seem to fix the problem.
    SCENARIO 2:
    -- LoginPanel.fxml --
    <?import kalungcasev2.view.*?>
    I get:
    Warning: File 'LoginPanel.fxml' contains references to types that could not be loaded.
    Missing types are: [StatusZone, LanguageSelector]
    I can click 'Set up classpath', but no matter which folder I choose, it doesn't seem to fix the problem.
    How do I fix this?

    Hi,
    If no ClassLoader is configured in the FXMLLoader, then the FXMLLoader will try to load the
    classes using the System/Context class loader.
    This works well in the context of an application where everything is in the system class loader.
    In SceneBuilder however - your classes will not be in the System class loader, but in a special
    URL class loader that SceneBuilder created for your FXML file.
    SceneBuilder sets this ClassLoader on the FXMLLoader that loads your top FXML file,
    but it can't do anything for the instances of FXMLLoader that your own code creates.
    Therefore - it's best to configure your FXMLLoader with the appropriate class loader,
    which is usually the class loader that loaded your custom type.
    See https://javafx-jira.kenai.com/browse/DTL-5177 for more details.
    -- daniel
    Edited by: daniel on Apr 25, 2013 7:33 AM
    Sorry - to be more precise:
    loader.setClassLoader(this.getClass().getClassLoader());
    is the correct line.

  • Scene Builder is now Open Source

    We're very happy to announce that Scene Builder is now open source, as a part of the OpenJFX project.
    The whole Scene Builder functionality is provided, including the SB Kit API (designed for integration of SB features into third party tools) as well as the standalone SB application.
    This code is made available under the terms of a BSD-style license, similar to JavaFX samples.
    The only part of the product which remains closed is the native packaging/installer code.
    Scene Builder source code is located in apps/scenebuilder/ in the OpenJFX repository.
    Building and running the Scene Builder application from these sources can be done either of the following ways:
    From NetBeans: open the SceneBuilderApp project and run it (you need a JDK 1.8 Java Platform configured)
    From the command line:
    $ cd SceneBuilderApp
    $ ant -Dplatforms.JDK_1.8.home=<path_to_JDK_home> run
    As usual your contribution and feedback are welcome.
    The Scene Builder team.

    Thank you for the nice feedback!
    Beyond providing SB itself, we indeed hope very much that the code will more largely be useful to the community, as a big JavaFX sample application.
    SceneBuilderKit contains the API allowing to integrate SB functionality into the GUI of a third party tool, such as an IDE.
    As you probably know, with the 2.0 release, SB code base has been deeply re-factored to make it modular such that each of the Panels (Content, Inspector, Hierarchy, etc...) can be instantiated and brought up independently of the others. So, in a nutshell, the SB Kit API allows to orchestrate the editing of an FXML document and to control the various panels.
    SceneBuilderApp contains the code of the SB standalone application. It is itself built on top of SceneBuilderKit, and will provide the all-in-one document window you are now familiar with, as well as top level menu bar, preview in a separate window, preference dialog (not quite there), about dialog, etc…

  • Unable to uninstall JavaFX Scene Builder 1.1 Preview on Windows 7 x64

    When I try to uninstall, a window telling me that this version of the application is already installed is shown.
    The consequence is that I am unable to remove the application.
    I have used the following MSI-file:
    javafx_scenebuilder-1_1-beta-b15-windows-13_dec_2012
    Any tips on how to proceed?
    /Erik

    To clarify my previous answer note depending on the OS type what to clear in the registry vary
    If on a 64-bit Windows:
    HKEY_LOCAL_MACHINE > SOFTWARE > Wow6432Node > JavaSoft > JavaFX Scene Builder
    HKEY_LOCAL_MACHINE > SOFTWARE > Wow6432Node > Oracle > JavaFX Scene Builder
    If on a 32-bit Windows:
    HKEY_LOCAL_MACHINE > SOFTWARE > JavaSoft > JavaFX Scene Builder
    HKEY_LOCAL_MACHINE > SOFTWARE > Oracle > JavaFX Scene Builder
    Yves

  • How to use JavaFX Scene Builder 1.1 build b29 in Eclipse

    I would like to use Scene Builder to generate FXML with corresponding handlers and then use other technologies to implement the handlers. I have looked at jfxeclipse and it was not suitable. The Scene Builder team has done a great job with the easy layout and the terse xml.  Any information would be appreciated. The support in Netbeans is very good but I can't use that IDE at this time.

    By jfxeclipse, do you mean e(fx)clipse? You can create a new FXML file directly in there (File -> New -> Other... -> JavaFX -> New FXML document). You can right click on that file and choose "Open with Scene Builder". It will open it in Scene Builder (whatever version you have installed), let you edit it there, and then update it in Eclipse when you save. Not quite using Scene Builder as a plugin, but just as convenient.

  • [SOLVED]Scene Builder 2.0 not opening

    When i open the JavaFX Scene Builder 2.0,nothing happens.
    I'm using Windows 7 with JDK 8(64Bit).

    Hi Cyberboy,
    Have you verified the problem recurs if you take it out of the exclusion list again?
    I don't have any problem with BitDefender, Scene Builder and Win7.
    Have you seen this solution:
    http://deltadata.wordpress.com/2013/12/25/javafx-scene-builder-failed-to-create-jvm-fix/ :
    1.Search for regedit.exe and run it.
    2.Go to HKEY_CURRENT_USER\Software\JavaSoft\Prefs\com\oracle\javafx\scenebuilder\/J/V/M/User/Options
    3.Edit the value from 999m to 512m

  • What happened to ?scenebuilder-stylesheet ... in Scene Builder 2?

    Hi,
    Did the way <?scenebuilder-stylesheet some-style.css?> works get changed in Scene Builder 2?  When I use Preview -- Scene Style Sheets -- Add a Style Sheet, I can't figure out where Scene Builder 2 is storing the info for the previewed style sheet.  When I commit the FXML file and check it out on another machine, all that information is lost.
    What's the recommended way to deal with CSS for for files that are going to be included in other files using fx:include?  For example, assume I have 2 FXML files:
    1) Main.fxml - A StackPane that includes Sub.fxml via fx:include.  Specifies main.css as a style sheet.
    2) Sub.fxml - Uses styles from main.css, but no style sheet is attached directly.
    It doesn't seem right to add main.css to both files.  If I remember correctly, Scene Builder 1 would use <?scenebuilder-stylesheet some-style.css?> to make this work, but it seems to be ignored in Scene Builder 2.  Can anyone suggest another way of doing what I want?

    Yes it changed.
    For some reason, in SceneBuilder 2.0, they decided to have the CSS preview and the I18N preview information stored in the SceneBuilder's preferences instead.
    That is using Java's Preferences API.
    So for example, in Windows, those info are stored in the Registry in, hold your breath: HK_CURRENT_USER\Software\JavaSoft\Prefs\com\oracle\javafx\scenebuilder\app\preferences\/S/B_2.0\/D/O/C/U/M/E/N/T/S/<name of your FXML file here>
    Which means that :
    CSS and I18N preview gets broken as soon as you move the FXML file around.
    Hilarity ensues (or not) as soon as you have 2 FXML with the same mane in different projects and you move them around (one may get the CSS for the 2nd one if it ends up in the same location).
    Your registry will get bloated with references to long deleted FXML after a while...
    This also probably means that the same should be stored in some XML file in ~/.java/ in Linux and Mac OS X.
    On the other hand, you do not have anymore the issue in SceneBuilder 1.x which was looking for the hard-coded location of the CSS and properties files when moving FXML files between computers when working on a multi-person/multi-computer project.
    Also, it's not as bad as SceneBuilder 1.1 which was keeping a whole copy of the directory structure I had in my projects in the Registry for seemingly no good reason.

  • Does anyone know when a Scene Builder update is going to be released?

    This issue is driving me crazy.  Does anyone know when v2.0.1 of Scene Builder is supposed to be released?

    The issue you linked to is marked as fixed.
    You don't need wait for an official Scene Builder release (I have no idea when such a release may occur).
    You can build Scene Builder from source and you will pick up the release.

  • Scene Builder 1.1

    In Scene Builder 1.1 there is the following option File --> Customize Library --> Add Selected. These seems to allow you to select an object like a grid pane and add it an all it's children as a custom control in the library. The problem I am having is that it seems to be adding it with the description of base control (ie. GridPane) and not allowing me to use a more descriptive label for the new control. How do I change the label of the control that I add via this method?
    Thank you

    This "add to library" feature is somewhat experimental for now, and we are not yet sure what exact shape it will take in the final Scene Builder 1.1 release.
    For the time being, it is not yet possible to choose or change the name of a custom Library element, but we are definitely taking good note of this requirement.
    See https://javafx-jira.kenai.com/browse/DTL-5685.
    Thanks.

  • Scene Builder

    Will Scene Builder be integrated in Netbeans or it will be a stand alone application?

    It runs both ways already.
    http://wiki.netbeans.org/NB72_FX2_Plan#SceneBuilder_support
    http://docs.oracle.com/javafx/scenebuilder/1/installation/jsbpub-installation.htm
    Upcoming NetBeans7.3 version will feature more integration points between the two tools.
    http://wiki.netbeans.org/NB73_FX2_Plan#SceneBuilder_Support_.2F_Raw_FXML_Editing

  • FX 1.0 Scene Builder beta samples won't run in Netbeans

    Hi,
    I downloaded samples that are added to JavaFX Scene Builder from: http://download.oracle.com/otn-pub/java/javafx_scenebuilder/1.0/javafx_scenebuilder_samples-1_0-beta-b32-26_mar_2012.zip
    I imported it to netbeans ide and then I tried to run project, when I came across problem:
    com.sun.javafx.fxml.PropertyNotFoundException: Property "styleClass" does not exist or is read-only.
    Could you help me with this issue?

    Same problem for me...with Fx 2.0.3 (didn't try 2.1.0 beta)
    Solved this way in fxml file:
    (...some code...)
    <Button id="buttonSearch" contentDisplay="GRAPHIC_ONLY" maxHeight="32.0" maxWidth="32.0" minHeight="32.0" minWidth="32.0" prefHeight="32.0" prefWidth="32.0" AnchorPane.bottomAnchor="6.0" AnchorPane.rightAnchor="114.0" >
    <styleClass>
    <String fx:value="buttonSearch"/>
    </styleClass>
    </Button>
    (...some code...)
    and in css file:
    .buttonSearch {
         -fx-graphic: url("images/question.png");
         -fx-content-display: graphic-only;
    I load the css file in my main():
    stage.getScene().getStylesheets().add("MyApplication/test.css");
    just before stage.show();
    Edit:
    With the 2.1.0 developper preview there's no exception using styleClass()...

  • Could JavaFX Scene Builder installation depend on JRE_HOME setting?

    Hello,
    I have no privilege to install software in company computer so I copied Jre7u3 (Java Runtime 7 Update 3 ) folder from home to the company and set JRE_HOME for user variable. It still shows following info when installing Scene Builder.
    No Suitable 32-bit Java Runtime Enviroment (JRE) has been found.
    You should install:
    - Java 6 Update 29 (32-bit) or above
    OR
    - Java 7 Update 2 (32-bit) or above
    Could JavaFX Scene Builder installation depend on JRE_HOME setting or any other solutions exit for this issue? Thanks.

    Surprising. Your hardware should run Scene Builder without any trouble.
    With Java 7 U5 I run SceneBuilder 1.0 b44 on Win XP 32-bit and 1 G of RAM, with -Xmx1024m.
    Aren't you facing an issue with Java ? do you run successfully other Java applications of a comparable size ?
    You may also download the Scene Builder samples: according you've Ant and FX handy you can run them command line.
    For what is about removing or modifying the -Xmx option the answer is no, this can't be done in this release.
    Regards

  • I18n in scene builder

    I'm trying to internationalize a JavaFX 2.2 app.
    When I set the resource file (.properties) in Scene Builder, I can see labels with text in selected language. But when I try to run it, this gives me the following error:
    No resources specified.
    file:/C:/Users/xxx/dist/I18n.jar!/org/osl/javafx/InterfaceScn.fxml:34
    and line 34 in my fxml file is:
    *<Label id="lineNumberValue" layoutX="343.0" layoutY="63.0" text="%lineNumber" />*
    in .properties file lineNumber key is set and as I have already mentioned I can see in scene builder that it takes value from the .properties file.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    If I remove this .properties resource from within scene builder and set "*-fx-font-family: "Raavi";*" in my stylesheet, it works fine but now I can't see the actual words but boxes in scene builder.
    I mean now the app runs fine and I can read text of labels in that other language but its very difficult to design interface in scene builder.
    Isn't there any way by which I can see values from .properties file while designing the interface and it also let the app to run.
    I have tried putting localizing code in my main class by setting Locale and then using ResourceBundle to load my .properties resource by that didn't work either.
    Thanks, for any suggestion or example code. Cheers.

    but that's my point. " *Preview > Internationalization > Set Resource and select your resource bundle*" set the correct values from my resource file. But on running the app I get the following error.
    I figured out that it is not the declaration of resource file in fxml that is causing this error but the rather it is the line where I set the value like:
    *<Label id="lineNumberValue" layoutX="343.0" layoutY="63.0" text="%lineNumber" />*
    To me it looks like, javafx is unable to find the resource file at run time. But If I remove the *'%***'* thing and then use css for setting font family, It loads the interface without any issue.
    I mean I didn't get any error for loading resource-bundle or anything.
    This is the code that I'm using to load the resource file:
    Locale myLocale = new Locale("pa-IN");
    ResourceBundle rb = ResourceBundle.getBundle("org.osl.javafx.interfaceScn", myLocale );
    But thanks for documentation links. I will look into sample app, if that can give me some hint.
    And here is the complete error:
    run:
    No resources specified.
    file:/C:/Users/xxx/dist/I18n.jar!/org/osl/javafx/InterfaceScn.fxml:33
    at javafx.fxml.FXMLLoader$Element.processPropertyAttribute(FXMLLoader.java:305)
    at javafx.fxml.FXMLLoader$Element.processInstancePropertyAttributes(FXMLLoader.java:197)
    at javafx.fxml.FXMLLoader$ValueElement.processEndElement(FXMLLoader.java:588)
    at javafx.fxml.FXMLLoader.processEndElement(FXMLLoader.java:2430)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2136)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2028)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2742)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2721)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2707)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2694)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2683)
    at org.osl.javafx.I18n.start(I18n.java:44)
    at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
    at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:206)
    at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:173)
    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$3$1.run(WinApplication.java:73)
    at java.lang.Thread.run(Thread.java:722)
    Sep 21, 2012 9:19:50 AM org.osl.javafx.I18n start
    SEVERE: null
    javafx.fxml.LoadException: No resources specified.
         at javafx.fxml.FXMLLoader$Element.processPropertyAttribute(FXMLLoader.java:305)
         at javafx.fxml.FXMLLoader$Element.processInstancePropertyAttributes(FXMLLoader.java:197)
         at javafx.fxml.FXMLLoader$ValueElement.processEndElement(FXMLLoader.java:588)
         at javafx.fxml.FXMLLoader.processEndElement(FXMLLoader.java:2430)
         at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2136)
         at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2028)
         at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2742)
         at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2721)
         at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2707)
         at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2694)
         at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2683)
         at org.osl.javafx.I18n.start(I18n.java:44)
         at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
         at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:206)
         at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:173)
         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$3$1.run(WinApplication.java:73)
         at java.lang.Thread.run(Thread.java:722)

  • Problem scene builder xchart or areachart FXML

    Hi.
    Always when I use xchart or AreaChart FXML is not possible execute in Netbeans. But scene builder the preview is ok. The error is:
    Abr 13, 2012 4:22:19 PM javafx.fxml.FXMLLoader logException
    Grave: java.lang.UnsupportedOperationException
    /C:/Landis/Landis%202011/TC65/1-Desenvolvimento/candidate/C750ConfigGW/build/classes/c750configgw/layouts/CenterDashBoard.fxml:208
    at java.util.AbstractMap.put(AbstractMap.java:203)
    at com.sun.javafx.fxml.builder.XYChartBuilder.put(Unknown Source)
    at com.sun.javafx.fxml.builder.XYChartBuilder.put(Unknown Source)
    at javafx.fxml.FXMLLoader$Element.applyProperty(Unknown Source)
    at javafx.fxml.FXMLLoader$Element.processPropertyAttribute(Unknown Source)
    at javafx.fxml.FXMLLoader$Element.processInstancePropertyAttributes(Unknown Source)
    at javafx.fxml.FXMLLoader$ValueElement.processStartElement(Unknown Source)
    at javafx.fxml.FXMLLoader.processStartElement(Unknown Source)
    at javafx.fxml.FXMLLoader.load(Unknown Source)
    at javafx.fxml.FXMLLoader.load(Unknown Source)
    at javafx.fxml.FXMLLoader.load(Unknown Source)
    at javafx.fxml.FXMLLoader.load(Unknown Source)
    at javafx.fxml.FXMLLoader.load(Unknown Source)
    at javafx.fxml.FXMLLoader.load(Unknown Source)
    at javafx.fxml.FXMLLoader.load(Unknown Source)
    at c750configgw.C750ConfigGW.carregaLayoutCenter(C750ConfigGW.java:123)
    at c750configgw.controllers.TopController.actionBotDashboard(TopController.java:45)
    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 javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(Unknown Source)
    at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
    at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
    at javafx.event.Event.fireEvent(Unknown Source)
    at javafx.scene.Node.fireEvent(Unknown Source)
    at javafx.scene.control.Button.fire(Unknown Source)
    at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source)
    at com.sun.javafx.scene.control.skin.SkinBase$4.handle(Unknown Source)
    at com.sun.javafx.scene.control.skin.SkinBase$4.handle(Unknown Source)
    at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
    at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
    at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
    at javafx.event.Event.fireEvent(Unknown Source)
    at javafx.scene.Scene$MouseHandler.process(Unknown Source)
    at javafx.scene.Scene$MouseHandler.process(Unknown Source)
    at javafx.scene.Scene$MouseHandler.access$1600(Unknown Source)
    at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
    at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
    at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
    at com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
    at com.sun.glass.ui.View.notifyMouse(Unknown Source)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
    at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:722)
    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
         at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(Unknown Source)
         at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
         at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
         at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
         at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
         at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
         at javafx.event.Event.fireEvent(Unknown Source)
         at javafx.scene.Node.fireEvent(Unknown Source)
         at javafx.scene.control.Button.fire(Unknown Source)
         at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source)
         at com.sun.javafx.scene.control.skin.SkinBase$4.handle(Unknown Source)
         at com.sun.javafx.scene.control.skin.SkinBase$4.handle(Unknown Source)
         at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
         at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
         at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
         at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
         at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
         at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
         at javafx.event.Event.fireEvent(Unknown Source)
         at javafx.scene.Scene$MouseHandler.process(Unknown Source)
         at javafx.scene.Scene$MouseHandler.process(Unknown Source)
         at javafx.scene.Scene$MouseHandler.access$1600(Unknown Source)
         at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
         at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
         at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
         at com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
         at com.sun.glass.ui.View.notifyMouse(Unknown Source)
         at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
         at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
         at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:722)
    Caused by: 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)
         ... 50 more
    Caused by: java.lang.UnsupportedOperationException
         at java.util.AbstractMap.put(AbstractMap.java:203)
         at com.sun.javafx.fxml.builder.XYChartBuilder.put(Unknown Source)
         at com.sun.javafx.fxml.builder.XYChartBuilder.put(Unknown Source)
         at javafx.fxml.FXMLLoader$Element.applyProperty(Unknown Source)
         at javafx.fxml.FXMLLoader$Element.processPropertyAttribute(Unknown Source)
         at javafx.fxml.FXMLLoader$Element.processInstancePropertyAttributes(Unknown Source)
         at javafx.fxml.FXMLLoader$ValueElement.processStartElement(Unknown Source)
         at javafx.fxml.FXMLLoader.processStartElement(Unknown Source)
         at javafx.fxml.FXMLLoader.load(Unknown Source)
         at javafx.fxml.FXMLLoader.load(Unknown Source)
         at javafx.fxml.FXMLLoader.load(Unknown Source)
         at javafx.fxml.FXMLLoader.load(Unknown Source)
         at javafx.fxml.FXMLLoader.load(Unknown Source)
         at javafx.fxml.FXMLLoader.load(Unknown Source)
         at javafx.fxml.FXMLLoader.load(Unknown Source)
         at c750configgw.C750ConfigGW.carregaLayoutCenter(C750ConfigGW.java:123)
         at c750configgw.controllers.TopController.actionBotDashboard(TopController.java:45)
         ... 54 more
    Exception in thread "JavaFX Application Thread"
    Someone have the same problem?

    Hi,
    I suspect that the JavaFX version SceneBuilder is using and the JavaFX version your app runs on in NetBeans are different.
    You may want to try using JavaFX 2.2 developer preview available from here: http://www.oracle.com/technetwork/java/javafx/downloads/devpreview-1429449.html.
    - daniel

Maybe you are looking for