我只是想知道如何从文件选择器中提取要显示的压缩图像文件,这是我现在拥有的代码,如果有人可以帮助,那么我只需要知道在if语句下放置什么内容就可以了。 ,谢谢
JFileChooser jfc = new JFileChooser();
int returnValue = jfc.showOpenDialog(null);
if(returnValue==0){
File f = jfc.getSelectedFile();
System.out.println(f.getName());
System.out.println(f.getAbsolutePath());
if(f.getName().endsWith(".zip")){
}
ImageIcon ii = new ImageIcon(f.getAbsolutePath());
label.setIcon(ii);