Class ResourcesUtil


  • public final class ResourcesUtil
    extends java.lang.Object
    Utils for load resources from classpath.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Properties getBundleColorProperties​(java.lang.String style)
      Load default colors scheme for LAF theme.
      static java.awt.Image getBundledImage​(java.lang.String imageName)
      Load icon from classpath.
      static java.awt.Image getImage​(java.lang.String resourceName)
      Load icon.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • APP_ICON_16X16

        public static final java.awt.Image APP_ICON_16X16
    • Method Detail

      • getImage

        public static java.awt.Image getImage​(java.lang.String resourceName)
        Load icon.
        Parameters:
        resourceName - resource name
      • getBundledImage

        public static java.awt.Image getBundledImage​(java.lang.String imageName)
        Load icon from classpath.
        Parameters:
        imageName - icon file name
        Returns:
        icon instance
      • getBundleColorProperties

        public static java.util.Properties getBundleColorProperties​(java.lang.String style)
                                                             throws java.io.IOException
        Load default colors scheme for LAF theme.
        Parameters:
        style - a style name, should be 'light' or 'dark'
        Returns:
        Properties object loaded when succeeded, otherwise null
        Throws:
        java.io.IOException