Unknown property warning for each .css file and line in javafx

I had a problem when I import a team group project from git, when importing into Eclipse I have to add the JavaFX SDK from the library of build paths and as soon as I open my style package with .css files in it they all have yellow warning lines under each line code. For instance:

.label { -fx-font-size: 12pt; -fx-font-family: "Helvetica bold"; -fx-text-fill: #000000; } 

warning message:

 Unknown property: "-fx-font-size: 12pt" 

This warning has for every .css file and every line.

Any help would be greatly appreciated.

+6
source share
2 answers

I had a similar problem and fixed it, making sure that I included all the JARs and libraries that I needed in the build path. I had to add JODA JAR JAR, SQLite Jar, SceneBuilder Jar and JavaFX SDK library.

It is also important to leave these files unmarked in the Order and Export section of the Java build path.

+5
source

You must install e (fx) clips

enter image description here

I assume that you are already a web tool platform .

+2
source

Source: https://habr.com/ru/post/985577/


All Articles