[FX] integrate dialogue FX App Swing fail loading fxml

Hello

I'm about to migrate my Swing application and I would like to start by adding new FX-graphical user interface dialog boxes.

I found this site (in German) explaining how to do:

https://jaxenter.de/wie-man-swing-Anwendungen-MIT-JavaFX-modernisiert-25212

But the sithe does not work with the defined FXML scene.

My Test applicarion raise an exception and I cannot understand why:

javafx.fxml.LoadException: Root hasn't been set. Use method setRoot() before load.
/D:/data/scm-workspace/anderes/Test/bin/tpd/application/fx/ExampleDialog/ExampleDialog.fxml:9
    at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2597)
    at javafx.fxml.FXMLLoader.access$100(FXMLLoader.java:103)
    at javafx.fxml.FXMLLoader$RootElement.constructValue(FXMLLoader.java:1326)
    at javafx.fxml.FXMLLoader$ValueElement.processStartElement(FXMLLoader.java:746)
    at javafx.fxml.FXMLLoader.processStartElement(FXMLLoader.java:2707)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2527)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3214)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3175)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3148)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3124)
    at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3104)
    at javafx.fxml.FXMLLoader.load(FXMLLoader.java:3097)
    at tpd.application.fx.MyFxmlLoaderImpl.loadFor(MyFxmlLoaderImpl.java:19)
    at tpd.application.fx.JFXHiddenApplication.loadFor(JFXHiddenApplication.java:94)
    at tpd.application.fx.AbstractFxDialog.<init>(AbstractFxDialog.java:15)
    at tpd.application.fx.ExampleDialog.ExampleDialog.<init>(ExampleDialog.java:15)
// ...

Full StackTrace attached...

I'm a bit confused because I put the root just before calling the FXMLLoader:

public abstract class AbstractFxDialog extends Stage {
    public AbstractFxDialog(MyFxmlLoader fxmlLoader) {
        Scene scene = new Scene(new Pane(), 1, 1);
        setScene(scene);
        scene.setRoot(new Pane()); // line 14
        Pane pane = fxmlLoader.loadFor(getClass()); // failing line

I have attached a NBS to play with.

Could someone please help me solve this?

Good bye

DPT

The solution was to record a controller class and change the element root in the fxml of to (or any container FX element valid).

Good bye

DPT

Tags: Java

Similar Questions

  • Creation panel cloud Apps will not load

    Creation panel cloud Apps will not load. Been like that since the AE last updated failed a few days ago. All the apps work and CC seems fine. Sign out of CC and leave CC are shaded out and not available. Any ideas. Pete.

    In fact, it was good this morning... Thank you for that. I rebooted several times... in any case, all good for now. If I can solve my problem of the Organization, I'll be a happy man.

  • Airport Extreme control app won't load on EL Capitan

    Two questions really.  I was looking for a complete manual for the AIrport Extreme, so I could find our wha that the capacity is before, I bought.  All I could find were manual installation.  Same story when I rang Applecare. It appeared that the only way to access the settings needed to run the application.  I downloaded the app and try to start it upward, hoping that it would require not just to know where was the Alex.  It was worse that the one - the app doesn't load, complaining that it was incompatible with my system.

    (I'll point out here that the only reason why I'm running that el Capitan is because of a run-in earlier with support Applecare who assured that the problem should disappear if I installed 10.11.)  It does not and it took four or five calls before I finally made to someone who knoew what he spoke.)

    So my first question remains: how will I know what the range of parameters for an Airport Extreme?

    Airport utility is built into Mac OS... you don't need to download or install any.

    Look under applications and directory of public services.

    But that won't really help you... the airport must be in the network to show you the real details.

    What exactly did you know?

    Let me assure you that the airport has a minimum of controls... really simplified.

    I have a Time Capsule, which is the same as the Airport Extreme, but adds the hard drive internal... to the extreme, you can add a USB drive.

    So here's a few screenshots.

    Short summary page.

    Summary page. Monitoring of each tab...

    Some menu options change if you select DHCP and NAT, for example.

    So miss a lot of what you might consider options...

    Read the review of the extreme on Smallnetbuilder for an overview of typical testers of routers.

    http://www.SmallNetBuilder.com/wireless/wireless-reviews/32158-Apple-Airport-ext magazine 80211ac-reme

  • Since the upgrade to Yosemite to El Capitan, my life is a misery! I use the software Adobe CC - well, I DID it! Nothing works anymore. I have to Forcequit all apps and nothing loads... anyone?

    Since the upgrade to Yosemite to El Capitan, my life is a misery! I use the software Adobe CC - well, I DID it! Nothing works anymore. I have to Forcequit all apps and nothing loads... anyone?

    I have all the latest upgrades.

    My operating system is El Capitan 10.11.3

    I have Adobe CC 2015 Illustrator, InDesign and Photoshop. None of them will launch, open or close.

    My mac is so slooooowwww. I'm sitting for 3 days I look at a spinning wheel. Can anyone help? My roof looks inviting at the moment!

    running CC2015 10.11 and it is compatible with El Capitan, so the question is what else is on your system that may be the cause of the problem:

    Please run a report of etrececk and post the results here

    http://etrecheck.com/#about

    This will give us one overview of what else is running on your system

    If you are currently using any anti-virus Mac you must uninstall it immediately from your system. See web developers page for instructions

    If you currently use one "own my ' or 'custodian' of products you must remove them from your system immediately.

    Restart and reset the PRAM

    How to reset the NVRAM on your Mac - Apple Support

    and in the meantime if you need to use CC I suggest you try the following

    start in safe mode and run CC

    Try safe mode if your Mac does not end commissioning - Apple Support

    or Create a NEW account administration and the boot into that and run CC

    and see if either of these procedures to help.

    and if you must go on your roof with a lounge chair, some Bob Marley albums, not a note.

  • Xoom: App updates fail and new application installed as well

    Is anyone else having a problem with all the app updates failing day and new downloads app so?

    I noticed that with the new market on the Xoom has more no indiation as to why leaving me completely in the dark.

    Unfortunately I'm also not in a good position to clear and reset since I am currently on vacation abroad.


  • E-mail Z10 Z10 Android blackBerry APPS can be loaded?

    someone tried to load the android OS 10.2.1 Z10 messaging application have

    OK thanks for the info, I have with me as you asked.

    What an android application for electronic mail as magical cloud and maildroid, can this apps can be loaded in Z10 with OS 10 and latest version is available on the website of blacberry for upgrade on Z10.

    awaiting your response

  • Error at startup APP name: error loading module 'name of the app' error check. on Blackberry 9800

    Hello.
    Now a day cannot open the newly added application that is downloaded from the app store.
    His pitches ' departure name APP Error: error loading module "app name" error check. "
    I searched online. but impossible to get the correct solution. I have given all the permissions and restart the unit more time. But not to use it.
    Some have said that it is the problem of the os. you need to reinstall the operating system.
    I don't know how to get the operating system and reinstall the operating system.
    Please help me.

    Hello.. Thank you. My problem is solved.

    I have clean the operating system and install the new os.

    Now, any problem is solved.

  • BlackBerry Smartphones Linkedin app gives error loading module

    Links in app gives error loading module in 9300 curve and after you have uninstalled it my curve 9300 has started to freeze at the navigation with a white screen... someone can tell me how to freeze screen resorve white!

    I just reload my os again and his normal work

  • My creative cloud app download fails

    my cloud of creativ adobe say part of the apps downlowd fail contact suport

    Please read https://forums.adobe.com/thread/1499014

    -try some steps such as changing browsers and disable your firewall

    -also clear the cache of your browser if you start with a fresh browser

    -check the file hosts for blocked entries https://forums.adobe.com/thread/1912777

    http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip.

    https://helpx.Adobe.com/creative-cloud/KB/creative-cloud-desktop-application-failed.html

    http://helpx.Adobe.com/creative-cloud/KB/failed-install-creative-cloud-desktop.html

  • The Panel of my creative cloud Apps will not load. How can I get it to load?

    I recently downloaded cloud creative to try Dreamweaver, however, the Committee of my creative cloud Apps will not load.  I tried to restart the laptop, opening and closing the application, etc. How can I get it to load? I use a MacBook Pro OS X Version 10.9.5.

    Computer died need code can you please send a screenshot of the error message.  The current version is 1.8.0.447.  The release notes for the creative Cloud Desktop application can be found at CC help | Creative Cloud app for desktop PC | Release notes.

  • When I try to install the CC apps they fail to extract to half way through. How can I fix it?

    When I try to install the CC apps they fail to extract to half way through. How can I fix it?

    Check your running process (when the installation crashes) using adobe.  to end this process and continue the installation.

  • Rejected app as "fails to load any content magazine.

    The app store has dismissed the application saying that it "fails to load any content magazine" without further information or help. Any ideas?

    No, it's not quite right. Here's what you need to do:

    (1) understand what is the account of your request. If necessary, use the account management tool to assign an Application role to an Adobe ID code (note that you cannot assign this role to an existing Adobe ID configured to work with DPS. You may create a new account.)

    (2) in InDesign, use this Application account to connect to the Folio Builder Panel. Create the folio and articles. (If you have already built a portfolio using a different Adobe ID, you can share the folio and copy it. (See this article).

    (3) in the dashboard (https://digitalpublishing.acrobat.com), sign in using your account Application and choose producer Folio. In Folio Producer, publish the folio as Public.

    (4) in DPS App Builder, specify the account of the Application in the 'Title ID' field when creating (or editing) or app. It joined the folios published to the app.

    (5) test of the development application that you create before you send the .zip file to Apple.

  • EPMA planning App - contour utility load fails

    I use version 11.1.2.3.

    I am loading new members, IE, metadata.

    First, I exported the dimensions of accounts using the utility. I then imported. 13 records of 13 files import successfully. I then added the Member of "Cash", that was inserted in line 7:

    PI_Accounts, Parent, Alias: default, valid for the Consolidations, storage of data, calculation of re encoding, Description, formula, UDA, Smart List, Type of data, Type of hierarchy, account Type, time, balance the value of Skip, Type Exchange rate, use 445, reports, the Plan Source Type, on the gaps Plan Type (PoiznIvy), aggregation (PoiznIvy)

    P & L, PI_Accounts, false, store, false, unspecified, no income, flow, no, no, false, non-frais, PoiznIvy, true, + he said.

    Net Income, P & L, false, store, false, unspecified, no income, flow, no, no, false, non-frais, PoiznIvy, true, + he said.

    Balance sheet, PI_Accounts, false, store, false, unspecified, no income, flow, no, no, false, non-frais, PoiznIvy, true, + he said.

    Total assets, balance sheet, fake, store, false, unspecified, no income, flow, no, no, false, non-frais, PoiznIvy, true, + he said.

    Current assets, Total assets, false, store, false, unspecified, no income, flow, no, no, false, non-frais, PoiznIvy, true, + he said.

    Cash, active, fake money, store, false, unspecified, no income, flow, no, no, false, non-frais, PoiznIvy, true, + he said.

    Assets, Total assets, false, store, false, unspecified, no income, flow, no, no, false, non-frais, PoiznIvy, true, + he said.

    Total liabilities & Equity shareholder, balance sheet, fake, store, false, unspecified, no income, flow, no, no, false, non-frais, PoiznIvy, true, + he said.

    Liabilities, liabilities Total & Equity shareholder, false, store, false, unspecified, no income, flow, no, no, false, non-frais, PoiznIvy, true, + he said.

    Short-term liabilities, obligations, false, store, false, unspecified, no income, flow, no, no, false, non-frais, PoiznIvy, true, + he said.

    Liabilities long-term, passive, fake, store, false, unspecified, no income, flow, no, no, false, non-frais, PoiznIvy, true, + he said.

    Equity shareholder, Total liabilities and capital shareholder, false, store, false, unspecified, no income, flow, no, no, false, non-frais, PoiznIvy, true, + he said.

    Common shares, the shares of the shareholder, false, store, false, unspecified, no income, flow, no, no, false, non-frais, PoiznIvy, true, + he said.

    Retained earnings, capital shareholder, false, store, false, unspecified, no income, flow, no, no, false, non-frais, PoiznIvy, true, + he said.

    The java error I get is: "Registered"Cash"Member Fetch failed." Up to 13/14 load of documents and the new 1 record is rejected.

    "Cash" he already has part of the application to make it load? That is why the utility seems pretty useless with respect to the loading of the new metadata. I already checked that there are no special characters in the name of the Member 'Cash '. There is no empty space at the end of the line. So why would I get this error?

    SH! will wrote:

    This utility works well for classical planning applications...

    EPMA to load the metadata of the tables of the interface.

    See you soon!

    SH! going

    Do not use the tables of the interface you can load flat files with EPMA, while it is true the outlineload utility is classic of planning applications.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • appvolume Setup is complete but get error below when opening the web app-volume Manager interface. Cannot start the volume App Manager "cannot load this file - tiny_tds.

    "failed to start volume App Manager" boot failure Unable to load the file of this type - tiny_tds

    error after installation.JPG

    Hi Paul amstaur,.

    This question says, I've met before, and there is a permission problem. Please do below things to get rid of.

    Since you have already installed the app volume, go back to the snapshot, or install a vanilla OS. Provide a sufficient permission in the local security policy, if you install SQL express as well as the volume of the app as the backup Administrator, debug as an administrator, log in as a service to the domain user. Also make sure the time is correct on the computer. You must restart the computer after you gave permission.  Most of the cases you already have full filled what mentioned above, but still you get an error.  To get rid of it, you must copy the appvolume installation files to the local directory, may be in the C drive and recommending only not to mount the ISO in virtual CD ROM, instead of copy and extract the ISO locally.  the next important thing is that you must run the setup.exe AppVolume run as administrator.

  • iTunes app does not load movie page

    This behavior started recently.  Every day I open the iTunes on my iPad app 4th gen (running iOS 9.3.2) and tap the icon of movies down to check what movie is on sale (for the promotion of July).  Usually, it does not load.  It sits right there spinning and say "Loading"... ».  I waited 5 minutes and it does not load.

    All other updated pages at the point.  If I let the music before page load I loss of movies and then hit movies, it just displays the page of the music with a black background instead of a white one.

    My current 9.3.2 iPhone has the same problem.  Yes, I killed the iTunes apps and restarted the devices without a bit of luck.

    Any ideas?

    Best regards, Patrick

    On both devices, try settings > iTunes and App Store > Apple ID > Sign Out > sign.

Maybe you are looking for