Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8116613

Misleading CSS warning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.1
    • fx2.0
    • javafx
    • all

      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.

            dgrieve David Grieve
            dpausjfx Dr. Michael Paus (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: