JFileChooser.showSaveDialog: All files greyed out

前端 未结 3 1494
星月不相逢
星月不相逢 2021-01-18 12:25

I\'m trying to use the JFileChooser to get files for loading and saving. The dialog that comes up with openFileDialog() works fine, but when I use

3条回答
  •  长发绾君心
    2021-01-18 12:59

    I'm looking for the .txt files to be displayed in the "normal" color while in the save dialog.

    That's controlled by the FileChooserUI delegate specific to a particular Look & Feel, e.g. AquaFileChooserUI on Mac OS X. You can use a different L&F, (laboriously) write your own FileChooserUI, or develop a custom File Browser GUI.

提交回复
热议问题