Package nl.siegmann.epublib.viewer
Class ViewerUtil
- java.lang.Object
-
- nl.siegmann.epublib.viewer.ViewerUtil
-
public class ViewerUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.Loggerlog
-
Constructor Summary
Constructors Constructor Description ViewerUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static javax.swing.JButtoncreateButton(java.lang.String iconName, java.lang.String backupLabel)Creates a button with the given icon.(package private) static javax.swing.ImageIconcreateImageIcon(java.lang.String iconName)
-
-
-
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)
-
-