org/homelinux/largo/utils/ImgComponent.java
changeset 14 f12f77aa13b2
parent 13 f83884cc7d2f
child 16 55b0d5006e7b
equal deleted inserted replaced
13:f83884cc7d2f 14:f12f77aa13b2
     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);