![]() |
|
unable to load FXML file as parent root w/ JavaFX in Forge environment - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: General Topics (https://hackforums.net/forumdisplay.php?fid=7) +--- Forum: Entertainment (https://hackforums.net/forumdisplay.php?fid=446) +---- Forum: Gaming (https://hackforums.net/forumdisplay.php?fid=65) +---- Thread: unable to load FXML file as parent root w/ JavaFX in Forge environment (/showthread.php?tid=5838022) |
unable to load FXML file as parent root w/ JavaFX in Forge environment - Xertxa - May 18, 2018 my objective is to make my agent load an external JavaFX menu in the Forge environment, and have the parent root be based off an FXML file. this is the code. just a simple JavaFX template being ran off a thread Spoiler (Click to View) however when the thread is started, i'm met with the following error Spoiler (Click to View) the problem is triggered from this line Spoiler (Click to View) i can get rid of the System.exit() warning by excluding the JavaFX libraries from transformation before loading them, like so Spoiler (Click to View) however the exceptions are still there. as an alternative to loading the root from an FXML file, technically i can just create the JavaFX menu with pure java code. i've tested this already and it works just fine when i don't attempt to load in an FXML file. utilizing SceneBuilder with FXML is a much more flexible and time saving process though. any suggestions? as always any help is appreciated. RE: unable to load FXML file as parent root w/ JavaFX in Forge environment - iQuintennn - May 19, 2018 The exception isn't a big problem. You could just ignore it. Unless you really want it to not show up; then I've got no idea RE: unable to load FXML file as parent root w/ JavaFX in Forge environment - Xertxa - May 19, 2018 (May 19, 2018 02:36 AM)iQuintennn Wrote: The exception isn't a big problem. You could just ignore it. Unless you really want it to not show up; then I've got no idea it doesn't show up. that's the problem. without it being able to properly load the FXML there's no scene for my stage. RE: unable to load FXML file as parent root w/ JavaFX in Forge environment - Nemesis139 - May 22, 2018 There is no workaround to this exception. The exception is caused by the FXMLLoader class itself. Trust me, I have attempted to this myself. I ended up just doing everything manually and tediously through Java. I still use SceneBuilder to quickly build scenes to see how I like them, then I just write the layouts in pure Java. RE: unable to load FXML file as parent root w/ JavaFX in Forge environment - GenericSkid - May 23, 2018 (May 22, 2018 10:39 PM)Nemesis139 Wrote: There is no workaround to this exception. The exception is caused by the FXMLLoader class itself. Trust me, I have attempted to this myself. I ended up just doing everything manually and tediously through Java. I still use SceneBuilder to quickly build scenes to see how I like them, then I just write the layouts in pure Java. This is what I do, but because I haven't looked into FXML at all. Most of my UI is also auto-generated so dunno how that would work out. RE: unable to load FXML file as parent root w/ JavaFX in Forge environment - Xertxa - May 23, 2018 no worries, i've already gotten around to completing a cloud config for my client in NodeJS as an alternative. feel free to take a look if interested. it still has some work to do. https ://gyazo .com/70744701366a786e2fb4b5bc07f8196a |