File file = new File("C:\\registro_sql\\Imagens\\Livro02\\0000\\000011.001");
BufferedImage bufferedImage = null;
try {
bufferedImage = ImageIO.read(file);
Icon icon = (Icon) bufferedImage;
lblImageIcon.setIcon(icon);
} catch (IOException ex) {
JOptionPane.showMessageDialog(null, "ERRO!");
}
エラー:
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Unhandled exception type IOException
at certidoesOrganizado.executor.main(executor.java:6)
拡張子が.001、.002、.003のファイルがいくつかありますが、ファイルは単なる画像ですが、別のソフトウェアがそれらを使用しているため名前を変更できませんが、Javaを使用してその画像ファイルを表示したい、BufferedImage以降のアイデア何も表示されていません。エラーが返されるだけです