Class ViewerUtil

java.lang.Object
nl.siegmann.epublib.viewer.ViewerUtil

public class ViewerUtil extends Object
  • Field Details

    • log

      private static org.slf4j.Logger log
  • Constructor Details

    • ViewerUtil

      public ViewerUtil()
  • Method Details

    • createButton

      static JButton createButton(String iconName, 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 ImageIcon createImageIcon(String iconName)