
对我来说很好。我从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);欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)