JavaFX 场景构建器去了哪里?

我试图找到难以捉摸的 JavaFX 场景构建器,这样我就可以在 Intellij 使用它了。我用的是 Windows 操作系统。

Oracle 声明 JavaFX 场景构建器包含在一个新的下载中,但是无论我如何搜索我都找不到它(参见 http://www.oracle.com/technetwork/java/javafx/downloads/index.html)。我认为他们已经链接到不正确的网页和谷歌,因为它是让我无处。

我已经安装了 Java8SDK 并且运行良好。显然 JavaFX 现在已经包含在其中了,但是在 Java 文件夹中我找不到场景构建器,而且它似乎完全不在线。

有人能帮忙吗?我只是想编写一个小的 GUI 程序,看起来 JavaFX 是一个不错的选择(如果不是,那么请随意打消我的这个想法!)

67557 次浏览

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.

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

UPDATE 2019:

  • The default install path appears to know be "Program Files" C:\Program Files\SceneBuilder\SceneBuilder.exe
  • JavaFX plugin might need to be enabled in Intellij 2019

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