Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Unknown property" warning for every .css file and line in javafx

I'm having an issue when I import my team's group project from git, when imported to Eclipse I have to add the JavaFX SDK from the build path library and once I open up my style package with the .css files in it they all have yellow warning lines underneath each line of code. For example:

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

the warning message would be:

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

It has this warning for every .css file and every line.

Any help would be greatly appreciated.

like image 961
Davidaj Avatar asked Apr 21 '15 08:04

Davidaj


2 Answers

I had a similar issue and rectified it by ensuring I had included all of the JAR's and Libraries that I required in the Build Path. I had to add Joda Time JAR, SQLite Jar, SceneBuilder Jar and the JavaFX SDK Library.

It is also important to leave these files 'unticked' in the Order and Export section of the Java Build Path.

like image 144
LiamC Avatar answered Oct 24 '22 05:10

LiamC


You should install e(fx)clipse

enter image description here

I assume you have Web Tools Platform installed already.

like image 35
Kai Avatar answered Oct 24 '22 03:10

Kai