Encountered an error and struggling to find the issue as everything seems right from my perspective:
CSS Code:
@font-face {
font-family: 'Titillium';
font-style: normal;
font-weight: normal;
src: url('Titillium.ttf');
}
.root{
-fx-font-family: "Titillium";
}
.label{
-fx-font-size: 14pt;
}
.title {
-fx-font-size: 24pt;
}
.textfield{
-fx-font-size: 15pt;
}
.list-cell{
-fx-font-size: 15pt;
}
.combo-box{
-fx-font-size: 12pt;
}
#detaillist .list-cell{
-fx-background-color: transparent;
}
#subtitle{
-fx-font-size: 10pt;
}
and this is my Java Code where I apply the style:
title = new Label("Note created on " + Selector.getSelectedNotiz().getDatum().toLocaleString());
title.setTextFill(Color.BLACK);
//--------------- Issue Here ----------------------
title.setStyle("title");
cmbLernender = new ComboBox<String>();
k = new Label("Competence");
k.setTextFill(Color.BLACK);
this all appears correct...
but upon running, the following error arises:
Sep 15, 2014 1:25:30 PM com.sun.javafx.css.parser.CSSParser declaration
WARNING: CSS Error parsing '*{title}: Expected COLON at [1,7]
Appreciate any assistance.
Peace out