20 Nisan 2018 Cuma

NetBeans Platform FileChooserBuilder Sınıfı

showSaveDialog metodu
Şöyle yaparız.
File home = new File(System.getProperty("user.dir"));

File f = new org.openide.filesystems.FileChooserBuilder("_output")
  .setTitle("Save Dictionary")
  .setDefaultWorkingDirectory(home)
  .setApproveText("Save")
  .setFileFilter(new FileNameExtensionFilter("xml files (*.xml)", "xml"))
  .setAcceptAllFileFilterUsed(true)
  .showSaveDialog();

Hiç yorum yok:

Yorum Gönder