mirror of
https://github.com/zxing/zxing.git
synced 2025-01-12 19:57:27 -08:00
Fixed a tiny deprecation warning
git-svn-id: https://zxing.googlecode.com/svn/trunk@413 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
16f01d19bf
commit
6c4fe1633f
|
@ -75,7 +75,7 @@ public final class GUIRunner extends JFrame {
|
||||||
File file = fileChooser.getSelectedFile();
|
File file = fileChooser.getSelectedFile();
|
||||||
ImageIcon imageIcon;
|
ImageIcon imageIcon;
|
||||||
try {
|
try {
|
||||||
imageIcon = new ImageIcon(file.toURL());
|
imageIcon = new ImageIcon(file.toURI().toURL());
|
||||||
} catch (MalformedURLException mue) {
|
} catch (MalformedURLException mue) {
|
||||||
throw new RuntimeException(mue);
|
throw new RuntimeException(mue);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue