public CreateProfileDialog(Window owner, @NonNull Launcher launcher) {
super(owner, ModalityType.DOCUMENT_MODAL);
this.launcher = launcher;
this.application = new Minecraft();
application.setVersion(new LatestStable());
setTitle(_("createProfile.title"));
setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);