Class Resources


  • public class Resources
    extends java.lang.Object
    This is helper class which contains methods to easily access resources.
    Version:
    1.0
    Author:
    Ivan Pribela
    • Constructor Summary

      Constructors 
      Constructor Description
      Resources()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.swing.Icon getIcon​(java.lang.String name)
      Returns icon from the resource named name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Resources

        public Resources()
    • Method Detail

      • getIcon

        public static javax.swing.Icon getIcon​(java.lang.String name)
        Returns icon from the resource named name. Icon is cached in internal map for faster access.
        Parameters:
        name - name of the icon to be retrieved
        Returns:
        icon associated with specified name