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

    Details

      Description

      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);
      .....
      ....
      }

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: