Fixed a tiny deprecation warning
authorsrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Wed, 11 Jun 2008 13:21:02 +0000 (13:21 +0000)
committersrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Wed, 11 Jun 2008 13:21:02 +0000 (13:21 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@413 59b500cc-1b3d-0410-9834-0bbf25fbcc57

javase/src/com/google/zxing/client/j2se/GUIRunner.java

index a93a5c2..d8d8633 100644 (file)
@@ -75,7 +75,7 @@ public final class GUIRunner extends JFrame {
     File file = fileChooser.getSelectedFile();
     ImageIcon imageIcon;
     try {
-      imageIcon = new ImageIcon(file.toURL());
+      imageIcon = new ImageIcon(file.toURI().toURL());
     } catch (MalformedURLException mue) {
       throw new RuntimeException(mue);
     }