Jlebours / VeriteTerrain_Editor

0 stars 0 forks source link

Java FX interface #8

Open Lvarieras opened 3 years ago

Lvarieras commented 3 years ago

Once we have clone the project and add the libraries of javaFX we have a problem All javaFX dependencies are not working and we need to add Maven dependency

Lvarieras commented 3 years ago

So to fix that e need to go on Java 8 then when we run the main e have a new error at ava.lang.NullPointerException: Location is required.

Lvarieras commented 3 years ago

To correct that i don't use the fXML anymore and i create the scene directly in the main class

Lvarieras commented 3 years ago

So we are going tu use ComboBox and to get which comboBox you have selected we are unsing special expression and you need to add them to java 8 to do that you have to mousehover the expression for exemple : observable -> System.out.printf("Valeur sélectionnée: %s", comboBox.getValue()).println()) and click on add expression to java 8