equal
deleted
inserted
replaced
6 import java.net.URL; |
6 import java.net.URL; |
7 |
7 |
8 import javax.swing.ImageIcon; |
8 import javax.swing.ImageIcon; |
9 |
9 |
10 public class ImgComponent extends Canvas { |
10 public class ImgComponent extends Canvas { |
11 static final long serialVersionUID = 140208; |
11 static final long serialVersionUID = 1L; |
12 private Image img; |
12 private Image img; |
13 |
13 |
14 public ImgComponent(String sFile) { |
14 public ImgComponent(String sFile) { |
15 ClassLoader cl = getClass().getClassLoader(); |
15 ClassLoader cl = getClass().getClassLoader(); |
16 URL url = cl.getResource(sFile); |
16 URL url = cl.getResource(sFile); |