Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8102642 New modern theme for JavaFX (Modena)
  3. JDK-8102797

Add constants to Application class for Modena and Caspian

XMLWordPrintable

      I propose adding two constants to Application like:

      [1/22/13 4:37:05 PM] Jasper Potts: public abstract class Application {
          /**
           * Constant for user agent stylesheet for the "Caspian" theme. Caspian
           * is the theme that shipped as default in JavaFX 2.x.
           */
          public static final String CASPIAN = "CASPIAN";
          /**
           * Constant for user agent stylesheet for the "Modena" theme. Modena
           * is the default theme for JavaFX 8.x.
           */
          public static final String MODENA = "MODENA";

      So that in your application you can just say:

      public void start(..) {
      .....
                    setUserAgentStylesheet(MODENA);
      .....
      ....
      }

            jasper Jasper Potts (Inactive)
            jasper Jasper Potts (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: