1 26 package org.objectweb.util.explorer.swing.icon; 27 28 import java.net.URL ; 29 30 import javax.swing.ImageIcon ; 31 32 import org.objectweb.util.explorer.api.IconProvider; 33 34 42 public class IconFileProvider 43 implements IconProvider 44 { 45 46 52 protected ImageIcon imageIcon_; 53 54 60 public IconFileProvider(String iconFile){ 61 imageIcon_ = new ImageIcon (iconFile); 62 } 63 64 public IconFileProvider(URL iconFile){ 65 imageIcon_ = new ImageIcon (iconFile); 66 } 67 68 74 80 83 public Object newIcon(Object object) { 84 return imageIcon_; 85 } 86 87 } 88 | Popular Tags |