对我来说很好。我从Swing教程“如何使用文件选择器”中修改了FileChooserDemo示例,它正确显示了名称。
fc.setSelectedFile( new File("save.txt")); // added this lineint returnVal = fc.showSaveDialog(FileChooserDemo.this);
对我来说很好。我从Swing教程“如何使用文件选择器”中修改了FileChooserDemo示例,它正确显示了名称。
fc.setSelectedFile( new File("save.txt")); // added this lineint returnVal = fc.showSaveDialog(FileChooserDemo.this);