diff options
Diffstat (limited to 'src/demos/nurbs/icons/IconFactory.java')
-rwxr-xr-x | src/demos/nurbs/icons/IconFactory.java | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/demos/nurbs/icons/IconFactory.java b/src/demos/nurbs/icons/IconFactory.java deleted file mode 100755 index 88d8539..0000000 --- a/src/demos/nurbs/icons/IconFactory.java +++ /dev/null @@ -1,19 +0,0 @@ -package demos.nurbs.icons; - -import java.io.*; -import javax.swing.ImageIcon; -import com.sun.opengl.util.StreamUtil; - -public class IconFactory { - private IconFactory() {} - - public static ImageIcon getIcon(String resourceName) { - try { - InputStream input = IconFactory.class.getClassLoader().getResourceAsStream(resourceName); - byte[] data = StreamUtil.readAll(input); - return new ImageIcon(data, resourceName); - } catch (IOException e) { - return new ImageIcon(); - } - } -} |