Package org.rspeer.commons.swing
Class SwingCommons
- java.lang.Object
-
- org.rspeer.commons.swing.SwingCommons
-
public class SwingCommons extends Object
-
-
Constructor Summary
Constructors Constructor Description SwingCommons()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclearStrictSize(Component component)static voidcreatePlaceholder(String text, JTextComponent component)static voidcreatePlaceholder(String text, JTextComponent component, boolean tooltip)static JLabelcreateUnderlinedLabel(String name)static BufferedImagegetDebugIcon()static BufferedImagegetDeveloperIcon()static BufferedImagegetIcon()static BufferedImagegetLogo()static BufferedImagegetScriptImage()static BufferedImageresizeImage(BufferedImage image, int newWidth, int newHeight)static BufferedImageresizeImage(BufferedImage image, int newWidth, int newHeight, boolean maintainAspectRatio)static voidsetStrictSize(Component component, int width, int height)static BufferedImagetoBufferedImage(Image image)
-
-
-
Method Detail
-
setStrictSize
public static void setStrictSize(Component component, int width, int height)
-
clearStrictSize
public static void clearStrictSize(Component component)
-
getScriptImage
public static BufferedImage getScriptImage()
-
getLogo
public static BufferedImage getLogo()
-
getIcon
public static BufferedImage getIcon()
-
getDeveloperIcon
public static BufferedImage getDeveloperIcon()
-
getDebugIcon
public static BufferedImage getDebugIcon()
-
createPlaceholder
public static void createPlaceholder(String text, JTextComponent component)
-
createPlaceholder
public static void createPlaceholder(String text, JTextComponent component, boolean tooltip)
-
resizeImage
public static BufferedImage resizeImage(BufferedImage image, int newWidth, int newHeight)
-
resizeImage
public static BufferedImage resizeImage(BufferedImage image, int newWidth, int newHeight, boolean maintainAspectRatio)
-
toBufferedImage
public static BufferedImage toBufferedImage(Image image)
-
-