Search code examples
javajavafx-2compatibilityfxmlscenebuilder

How can we target java 7 with Scene builder 2?


We have Scene Builder 2 and the FXML it produces can cause errors with JavaFx from Java 7. One big problem is the CSS @Style command. Another seems to be ScaleShape. But more, the colours on one AnchorPane completely failed under Java 7 but work OK with Java 8.

Is there a mode or option to invoke Scene Builder under Java 7 or get it to design Java 7 JavaFX compatible screen markup?

Are there other options for getting compatibility?


Solution

  • If you want to target Java 7, use SceneBuilder 1.1, not SceneBuilder 2. But as the download page I linked says in red letters "not recommended for use in production". So I advise moving to Java 8 for JavaFX development.