When working with one of my test programs I got the following warning message:
WARNING: com.sun.javafx.css.StyleManager loadStylesheet Resource "file:/D:/MPaus/Projects/NewEclipseWorkspace/JavaFX%20-%20Demos/bin/layouttests/c66/C66InputPanel0.css" not found.
This made me believe that there is something wrong with the file path but in fact it turned out to be the (non-existing) content of the file. I tried to start with an empty CSS file for development with the intention to add styling info when needed but this resulted in the above misleading warning. It does not even help if the file contains some comment. The warning only disappears if there is at least one CSS statement in it.
1. Why is there a warning for an empty file? For me it is quite natural to start with an empty file.
2. If there has to be a warning it should be more meaningfull.
WARNING: com.sun.javafx.css.StyleManager loadStylesheet Resource "file:/D:/MPaus/Projects/NewEclipseWorkspace/JavaFX%20-%20Demos/bin/layouttests/c66/C66InputPanel0.css" not found.
This made me believe that there is something wrong with the file path but in fact it turned out to be the (non-existing) content of the file. I tried to start with an empty CSS file for development with the intention to add styling info when needed but this resulted in the above misleading warning. It does not even help if the file contains some comment. The warning only disappears if there is at least one CSS statement in it.
1. Why is there a warning for an empty file? For me it is quite natural to start with an empty file.
2. If there has to be a warning it should be more meaningfull.
- duplicates
-
JDK-8117591 Empt stylesheet gives misleading error message
-
- Closed
-
-
JDK-8118860 CSS parser error messages carries little information
-
- Closed
-
-
JDK-8128013 Empty root declaration results in a warning
-
- Closed
-