-
Enhancement
-
Resolution: Fixed
-
P3
-
fx2.0
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
}
}
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
}
}
- duplicates
-
JDK-8112358 Passing "args" from main() to Application.start() or init()
- Closed
-
JDK-8100715 Support for command line arguments in Application
- Closed
- relates to
-
JDK-8091115 Provide access to application parameters from within FX runtime libs
- Open