Where has the JavaFX scene builder gone?

2019-01-03 23:59发布

I am trying to find the elusive JavaFX scene builder so I can use it in Intellij. I am on Windows OS.

Oracle have stated that the JavaFX scene builder is included in a new download, but no matter how I search I cannot find it (see http://www.oracle.com/technetwork/java/javafx/downloads/index.html). I think they have linked to the incorrect page and Googling for it is getting me nowhere.

I already have Java 8 SDK installed and working fine. Apparently JavaFX is now included in that, but nowhere in the Java folder can I find the scene builder and it seems to be completely missing online.

Please can anyone help? I am just wanting to write a small GUI program and it seems like JavaFX is the way to go (if it isn't then feel free to disabuse me of this notion!)

3条回答
何必那么认真
2楼-- · 2019-01-04 00:31

Install JavaFx Scene Builder (Gluon) with Intellij 14 on Windows with JDK7

This will probably work with Java 8 as well but I am using 7 so I didn't test 8.

I know this has been answered but this might be helpful for future Intellij users. To get scene builder to work with Intellij 14 use the following steps.

  1. Install Scene Builder for Windows. Download/Install From Here (Windows Installer (x64))
  2. Set Scene Builder path to executable in Intellij. File -> Settings -> Languages And Frameworks -> JavaFx By default mine installed under C:\Users\kris\AppData\Local\SceneBuilder\ enter image description here
  3. Open your .fxml file. Click on the scene builder tab. enter image description here
查看更多
放我归山
3楼-- · 2019-01-04 00:34

With JDK8u40, according to this:

Starting with Oracle Java SE 8u40, Oracle does not provide a separate set of accompanying JavaFX Scene Builder binaries. If you would like to contribute changes, ideas or just let us know what you have done with the code, please consult the OpenJDK Community contribution guidelines and join the openjfx-dev mailing list.

You can still download the last binary at Oracle in this link. But check this warning:

WARNING: These versions of JavaFX Scene Builder may include components that do not contain the latest security patches and are not recommended for use in production.

This means it doesn't include the last changes of 8u40, like the new Spinner control.

Alternatives

The project is open source, and you can find the updated code at the OpenJFX repo. So you are free to download it and build it.

Since its released under BSD license, Gluon is offering support for an updated version of Scene Builder, and you can download an installer for your platform or an executable jar from here.

Besides, they have an open repository where anybody can contribute.

查看更多
兄弟一词,经得起流年.
4楼-- · 2019-01-04 00:34

On a mac, in Intellij, you need to go to preferences, then type JavaFX and then do this. Please look at the attached Image.

enter image description here

查看更多
登录 后发表回答