Mercurial > hg > Members > tatsuki > Alice
comparison src/main/java/alice/test/topology/aquarium/MakeFrame.java @ 373:f6f6e481c00c multicast
rename and move files
author | sugi |
---|---|
date | Tue, 03 Jun 2014 17:14:17 +0900 |
parents | 4f534c07d41e |
children |
comparison
equal
deleted
inserted
replaced
372:0aff26fb2375 | 373:f6f6e481c00c |
---|---|
54 | 54 |
55 private BranchGroup setBackground() { | 55 private BranchGroup setBackground() { |
56 BranchGroup scene = new BranchGroup(); | 56 BranchGroup scene = new BranchGroup(); |
57 BufferedImage img = null; | 57 BufferedImage img = null; |
58 try { | 58 try { |
59 URL url = getClass().getClassLoader().getResource("image/image1.jpg"); | 59 URL url = getClass().getClassLoader().getResource("images/image1.jpg"); |
60 if (url!=null) { | 60 if (url!=null) { |
61 img = ImageIO.read(url); | 61 img = ImageIO.read(url); |
62 } else { | 62 } else { |
63 img = ImageIO.read(new File("image/image1.jpg")); | 63 img = ImageIO.read(new File("images/image1.jpg")); |
64 } | 64 } |
65 } catch (IOException e) { | 65 } catch (IOException e) { |
66 e.printStackTrace(); | 66 e.printStackTrace(); |
67 } | 67 } |
68 ImageComponent2D image = | 68 ImageComponent2D image = |