Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道如何保存文件图像,之前显示一个对话框来选择位置并输入文件名?
感谢您的回复,不胜感激
您无需指定技术,您可以通过 swing 使用 JFileChooserDialog,请参阅此处了解更多信息。
JFileChooserDialog fcd = new JFileChooserDialog(); fcd.showSaveDialog(component);