Class ViewerUtil


  • public class ViewerUtil
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.slf4j.Logger log  
    • Constructor Summary

      Constructors 
      Constructor Description
      ViewerUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static javax.swing.JButton createButton​(java.lang.String iconName, java.lang.String backupLabel)
      Creates a button with the given icon.
      (package private) static javax.swing.ImageIcon createImageIcon​(java.lang.String iconName)  
      • Methods inherited from class java.lang.Object

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

      • log

        private static org.slf4j.Logger log
    • Constructor Detail

      • ViewerUtil

        public ViewerUtil()
    • Method Detail

      • createButton

        static javax.swing.JButton createButton​(java.lang.String iconName,
                                                java.lang.String backupLabel)
        Creates a button with the given icon. The icon will be loaded from the classpath. If loading the icon is unsuccessful it will use the defaultLabel.
        Parameters:
        iconName -
        backupLabel -
        Returns:
        a button with the given icon.
      • createImageIcon

        static javax.swing.ImageIcon createImageIcon​(java.lang.String iconName)