alert - JavaFx: Message for empty file name in filechooser -
i want show message when user not enter file name on file chooser text box.
please let me know if there way accomplish this. code below:
filechooser filechooser = new filechooser(); filechooser.settitle("save as"); filechooser.extensionfilter extfilter = new filechooser.extensionfilter( "pdf files (*.pdf)", "*.pdf"); filechooser.getextensionfilters().add(extfilter); file destinationfile = filechooser.showsavedialog(primarystage);
the filechooser implemented using native apis in javafx, it's behavior platform-dependent. on mac os x example filechooser disable "save" button if file name field empty.
however impossible modify behavior of filechooser dialogs. platform using? suppose it's bug in javafx able select "save" without providing file name.
Comments
Post a Comment