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

Allow Application to get access to startup parameters.

XMLWordPrintable

      In the Launcher.launch() method you can pass an array of arguments. There is currently no option in the api that allows us to get these arguments from within an Application instance.

      class MyApp extends Application {
        public static void main(String[] args) {
          Launcher.launch(MyApp.class, args);
        }

        public void start() {
          // I would like to access args here without making args statically available as MyApp.args
        }
      }

            kcr Kevin Rushforth
            jsykorajfx Joeri Sykora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: