Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sometimes Scene Builder in JavaFX doesn't open

Tags:

javafx

It's really getting annoying and tiresome when I'm working really hard on something I need to complete and then I need to make a few changes to the GUI so I open Scene Builder and it doesn't open up.

I've tried - Closing Eclipse and opening it. - Killing the scene builder process and opening it.

What works - Logging off and logging on and then opening eclipse & the scene builder.

This is starting to make me lose taste in JavaFX. Though I have to use this over Swing.

Also, when I open Scene Builder (from my desktop) it opens up just fine, though when I navigate to my Main.FXML (inside my project). Scene Builder can't be opened. It just does nothing when I open it, and it minimizes.

like image 499
dxNeil Avatar asked Jun 21 '14 04:06

dxNeil


People also ask

Can JavaFX work without Scene Builder?

You don't have to use FXML or SceneBuilder. You can simply create the objects yourself and add them to your Scene/Stage yourself. It's entirely open as to how you implement it.

How do I open JavaFX Scene Builder in Eclipse?

From the Eclipse IDE Main menu, select File, choose New, and then Other, as shown in Figure 2-1. From the New dialog box, expand the JavaFX folder, and select the JavaFX Project wizard, as shown in Figure 2-2. Enter the project name, specify the JRE to use, and select the Project layout option.


2 Answers

Even though this question has been asked some time ago, I want to contribute my solution to this problem because it differs from the other solutions and in addition is very simple.

This particular problem happened to me just a few mins ago and all I took to solve was maximizing the actual Scenebuilder window!

  • Open the Windows Taskmanager
  • Switch to the applications tab
  • Right click the SceneBuilder (named: yourFileName.fxml)
  • Select 'Maximize'

Description above works for Windows OS, on other OS the corresponding application managing program should do the same.

That worked for me just perfect. No copying and/or overwriting needed.

like image 76
ifloop Avatar answered Nov 09 '22 03:11

ifloop


Its not the perfect answer but it works well. Try doing the following

1.Open scene builder directly from your local drive.

2.Click on File-> Open Recent -> Clear Menu

Then try to open up your fxml. Works fine for me.

like image 36
Harshita Sethi Avatar answered Nov 09 '22 04:11

Harshita Sethi