如何<移动选定的jpeg图像文件>借助JFileChooser到java swing中的选定文件夹?
在java swong中,使用JFileChooser,我想选择一个图像并将所选图像移动到所需的文件夹。
但不知道如何移动?
更新:这就是我所做的
public void actionPerformed(ActionEvent evt) {
imageFileChooser.setVisible(true);
int checkIfOpened = imageFileChooser.showOpenDialog(this);
if (checkIfOpened == JFileChooser.APPROVE_OPTION) {
File file = imageFileChooser.getSelectedFile();
// int size = file.getLength();
// don't know what to do here
}else{
}
}
没有找到相关结果
已邀请:
2 个回复
茂坦湿床够
。
扇献隙