JFileChooser with confirmation dialog

前端 未结 5 906
忘掉有多难
忘掉有多难 2020-12-08 00:38

I am working on a program that loads and saves data from text files, and I am asking the user a file name with JFileChooser on load and save.

This question is about

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-08 01:12

    Maybe you could verify that the file does not already exists, and even give the JFileChooser a FileSystemView (see this constructor)

提交回复
热议问题