JFXtras / jfxtras

A supporting library for JavaFX, containing helper classes, extended layouts, controls and other interesting widgets.
http://jfxtras.org
Other
599 stars 123 forks source link

CSS Problem with CalendarTextField #14

Closed simware closed 9 years ago

simware commented 9 years ago

When using the CalendarTextField the following exception is thrown:

SEVERE: The -fx-skin property has not been defined in CSS for ListSpinner[id=yearListSpinner, styleClass=ListSpinner] and createDefaultSkin() returned null. Oct 09, 2014 4:48:05 PM javafx.scene.CssStyleHelper calculateValue WARNING: Could not resolve '-fx-text-background-color' while resolving lookups for '-fx-text-fill' from rule '*.label' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss Oct 09, 2014 4:48:05 PM javafx.scene.CssStyleHelper calculateValue

Code examples FXML:

Code example JAVA: @FXML private CalendarTextField datePickerStart;

@Override
public void initialize(URL arg0, ResourceBundle arg1) {
    datePickerStart.setDateFormat(SimpleDateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.MEDIUM,
            Locale.getDefault()));
    Calendar calendar = Calendar.getInstance();
    datePickerStart.setCalendar(calendar);

}
tbee commented 9 years ago

Hmmm, what Java version are you running against?

simware commented 9 years ago

java version "1.8.0_20" Java(TM) SE Runtime Environment (build 1.8.0_20-b26) Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

On Thursday, October 9, 2014 4:58 PM, Tom Eugelink notifications@github.com wrote:

Hmmm, what Java version are you running against? — Reply to this email directly or view it on GitHub.

simware commented 9 years ago

Not sure that I answered, sorry for my confusion!

java version "1.8.0_20" Java(TM) SE Runtime Environment (build 1.8.0_20-b26) Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

On Thursday, October 9, 2014 4:58 PM, Tom Eugelink notifications@github.com wrote:

Hmmm, what Java version are you running against? — Reply to this email directly or view it on GitHub.

tbee commented 9 years ago

And what version of JFXtras?

simware commented 9 years ago

8.0-r2 and 8.0-r1

On Monday, October 13, 2014 8:09 AM, Tom Eugelink notifications@github.com wrote:

And what version of JFXtras? — Reply to this email directly or view it on GitHub.

tbee commented 9 years ago

Please give 8.0-r3-SNAPSHOT a try. As per (changed) convention I've stopped specifying the default skin in the css.

On 13-10-2014 10:19, Simon Öhlmer wrote:

8.0-r2 and 8.0-r1

On Monday, October 13, 2014 8:09 AM, Tom Eugelink notifications@github.com wrote:

And what version of JFXtras? — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/JFXtras/jfxtras/issues/14#issuecomment-58860322.

simware commented 9 years ago

Tom,

Same problem with the slight difference that the text box now dose not disappears when clicking on the icon.

A few lines from the CSS problems...

Oct 14, 2014 2:02:50 PM javafx.scene.CssStyleHelper calculateValue WARNING: Could not resolve '-fx-shadow-highlight-color' while resolving lookups for '-fx-background-color' from rule '.ListSpinner' in stylesheet jar:file:/Users/simon/.m2/repository/org/jfxtras/jfxtras-controls/8.0-r3-SNAPSHOT/jfxtras-controls-8.0-r3-SNAPSHOT.jar!/jfxtras/internal/scene/control/ListSpinner.css Oct 14, 2014 2:02:50 PM javafx.scene.CssStyleHelper calculateValue WARNING: Could not resolve '-fx-text-background-color' while resolving lookups for '-fx-text-fill' from rule '.label' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.020.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss Oct 14, 2014 2:02:50 PM javafx.scene.CssStyleHelper calculateValue WARNING: Could not resolve '-fx-text-background-color' while resolving lookups for '-fx-text-fill' from rule '.label' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.020.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss Oct 14, 2014 2:02:50 PM javafx.scene.CssStyleHelper calculateValue WARNING: Could not resolve '-fx-mark-color' while resolving lookups for '-fx-background-color' from rule '.ListSpinner .idle' in stylesheet jar:file:/Users/simon/.m2/repository/org/jfxtras/jfxtras-controls/8.0-r3-SNAPSHOT/jfxtras-controls-8.0-r3-SNAPSHOT.jar!/jfxtras/internal/scene/control/ListSpinner.css Oct 14, 2014 2:02:50 PM javafx.scene.CssStyleHelper calculateValue WARNING: Could not resolve '-fx-mark-color' while resolving lookups for '-fx-background-color' from rule '.ListSpinner .idle' in stylesheet jar:file:/Users/simon/.m2/repository/org/jfxtras/jfxtras-controls/8.0-r3-SNAPSHOT/jfxtras-controls-8.0-r3-SNAPSHOT.jar!/jfxtras/internal/scene/control/ListSpinner.css Oct 14, 2014 2:02:50 PM javafx.scene.CssStyleHelper calculateValue WARNING: Could not resolve '-fx-shadow-highlight-color' while resolving lookups for '-fx-background-color' from rule '.ListSpinner' in stylesheet jar:file:/Users/simon/.m2/repository/org/jfxtras/jfxtras-controls/8.0-r3-SNAPSHOT/jfxtras-controls-8.0-r3-SNAPSHOT.jar!/jfxtras/internal/scene/control/ListSpinner.css Oct 14, 2014 2:02:50 PM javafx.scene.CssStyleHelper calculateValue WARNING: Could not resolve '-fx-text-background-color' while resolving lookups for '-fx-text-fill' from rule '*.label' in stylesheet jar:file:/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/modena/modena.bss Oct 14, 2014 2:02:50 PM javafx.scene.CssStyleHelper calculateValue

On Monday, October 13, 2014 11:45 AM, Tom Eugelink notifications@github.com wrote:

Please give 8.0-r3-SNAPSHOT a try. As per (changed) convention I've stopped specifying the default skin in the css.

On 13-10-2014 10:19, Simon Öhlmer wrote:

8.0-r2 and 8.0-r1

On Monday, October 13, 2014 8:09 AM, Tom Eugelink notifications@github.com wrote:

And what version of JFXtras? — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/JFXtras/jfxtras/issues/14#issuecomment-58860322.

— Reply to this email directly or view it on GitHub.

tbee commented 9 years ago

These CSS warnings are a JavaFX problem and are not causing any problems AFAIK, something is not working with the resolution of the aliases.

Can you provide me with a simple example?

simware commented 9 years ago

Attached is a example.

On Tuesday, October 14, 2014 2:40 PM, Tom Eugelink notifications@github.com wrote:

These CSS warnings are a JavaFX problem and are not causing any problems AFAIK, something is not working with the resolution of the aliases. Can you provide me with a simple example? — Reply to this email directly or view it on GitHub.

tbee commented 9 years ago

Thanks, I'll take a look. FYI: right now there is an active issue about CSS in 8u40 in JavaFX.

https://javafx-jira.kenai.com/browse/RT-38950

I'm curious what will be the outcome there and if it will require me to refactor the CSS involving the controls.

On 15-10-2014 10:49, Simon Öhlmer wrote:

Attached is a example.

On Tuesday, October 14, 2014 2:40 PM, Tom Eugelink notifications@github.com wrote:

These CSS warnings are a JavaFX problem and are not causing any problems AFAIK, something is not working with the resolution of the aliases. Can you provide me with a simple example? — Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/JFXtras/jfxtras/issues/14#issuecomment-59175565.

tbee commented 9 years ago

I wanted to take a look, but there is no attachement. You could send it to me directly; tbee@tbee.org.

Tom

tbee commented 9 years ago

The warnings are a JavaFX problem and should disappear in u40. The actual issue here is fixed AFAIK.