eu.gressly.gui
Class ResourceAnchor

java.lang.Object
  extended by eu.gressly.gui.ResourceAnchor

public class ResourceAnchor
extends java.lang.Object

Show how to get access to files in the Filesystem. This works even, if the files are located in JAR-Files.

Author:
philipp gressly (phi (at) gressly.ch)

Constructor Summary
ResourceAnchor()
           
 
Method Summary
static javax.swing.ImageIcon getImageIcon(java.lang.String imgName)
          Get an ImageIcon of a "virtual" resource.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceAnchor

public ResourceAnchor()
Method Detail

getImageIcon

public static javax.swing.ImageIcon getImageIcon(java.lang.String imgName)
Get an ImageIcon of a "virtual" resource. This can be a file in the local file system or (if everything is packed into a jar-file) a file in the jar-file.

Parameters:
imgName -
Returns:
a reference to an imageIcon.