Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why would scenebuilder 2.0 fail to open my fxml file?

I have an fxml file that I created using SceneBuilder 2.0. This file is used in my JavaFx project that I am developing using Netbeans 8. Today, SceneBuilder stopped working with my file. When I tried to open it, SceneBuilder would minimize and would not open the file. I don't have any custom components in my scene graph.

I copied the contents of the file into a new fxml file and gave it a new name. SceneBuilder was then able to open this file even though the contents are identical to the file that it is unable to open.

What is going on here?

my apologies, but I am unable to post the contents of the fxml file.

like image 857
Justin Wiseman Avatar asked Jul 03 '14 00:07

Justin Wiseman


People also ask

How do I open a FXML file?

Use JavaFX Scene Builder Open CommandFrom the Menu bar, select File and then Open. From the Open FXML dialog box, go to the folder in which you extracted the IssueTrackingLite sample file and open the IssueTrackingLite, src, and issuetrackinglite folders. Double-click the IssueTrackingLite. fxml file.

How do I open FXML files in Scene Builder?

fxml, which you can open and edit using Scene Builder. In the Projects tab, right-click the sample. fxml file and select Open In Scene Builder, as shown in Figure 3-4. Specify the path to your Scene Builder installation the first time you try to open Scene Builder from within IntelliJ IDEA.

Where do FXML files go?

fxml file is located in the src/main/resources folder and my controller is in the src/main/java folder. How do i go about doing this? My src/main/resources folder is in the build path and i am able to call a . properties file that is in the src/main/resources folder from a class in the src/main/java folder.

How do I open FXML in eclipse?

You can edit an FXML file using the Eclipse FXML editor or by opening the file using the JavaFX Scene Builder tool: In the IDE's Package Explorer tab, expand the Test1 and src folders. Right-click the node for the Sample. fxml file and select Open with Scene Builder, as shown in Figure 3-6.


1 Answers

Okay.. so here I am searching for the solution for this weird problem! Seeing none of the other answers working for me, I did the random most thing I could think of and it worked.

Open SceneBuilder (a brand new one). Go to File > Open Recent > Clear Menu. Close Scene Builder.

Now the bug should be fixed (it did for me)

PS: I am ashamed of posting this answer. But since this is a nasty bug which wasted time, I don't want anyone else to waste theirs'.

PPS: Also, I can't double-check this solution, since it worked for me and I can't recreate the buggy scenario anymore.

like image 192
sinujohn Avatar answered Sep 22 '22 22:09

sinujohn