javafx 2 - I need to select or read only .config files via file chooser in java fx can any one help me -
i need file path of .config folder can 1 me
you can add extensionfilter
filechooser
select .config files (or type) via filechooser
. e.g.
filechooser flc = new filechooser(); flc.settitle("select file"); extensionfilter ext = new extensionfilter("config files", "*.config"); flc.getextensionfilters().add(ext); file tmpfile = flc.showopendialog(stage);
you can set extention type filechooser. e.g.
extensionfilter ext = new extensionfilter("image files", "*.png", "*.jpg", "*.jpeg");
hope helps.!
Comments
Post a Comment