“未知属性”警告javafx中每个.css文件和行 [英] "Unknown property" warning for every .css file and line in javafx
问题描述
当我从git导入我的团队的组项目时,当我导入到Eclipse时,我有一个问题我必须从构建路径库中添加JavaFX SDK,一旦我打开我的样式包与它的.css文件他们在每行代码下面都有黄色警告线。例如:
.label {
-fx-font-size:12pt;
-fx-font-family:Helvetica bold;
-fx-text-fill:#000000;
}
警告讯息将是:
未知属性:-fx-font-size:12pt
b $ b
它对每个.css文件和每一行都有此警告。
任何帮助将非常感激。
<我有一个类似的问题,并通过确保我包含了所有的JAR和库,我需要在构建路径中纠正它。我不得不添加Joda Time JAR,SQLite Jar,SceneBuilder Jar和JavaFX SDK库。
这些文件在命令和导出Java Build Path的部分。
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.
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.
这篇关于“未知属性”警告javafx中每个.css文件和行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!