Where has the JavaFX scene builder gone?

只愿长相守 提交于 2019-11-26 04:39:55

问题


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!)


回答1:


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.




回答2:


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\

  3. Open your .fxml file. Click on the scene builder tab.

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



回答3:


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



来源:https://stackoverflow.com/questions/28880785/where-has-the-javafx-scene-builder-gone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!