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

Allow Application to get access to startup parameters.

    XMLWordPrintable

    Details

      Description

      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
        }
      }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: