org.base.apps.core.swing
Class ViewUtil

java.lang.Object
  extended by org.base.apps.core.swing.ViewUtil

public class ViewUtil
extends Object

Utility class for Swing BASE Applications.

Author:
Kevan Simpson

Nested Class Summary
static class ViewUtil.IconSize
          Supported icon dimensions.
static class ViewUtil.Img
           
 
Method Summary
static ImageIcon loadImage(ViewUtil.Img img, String altText, ViewUtil.IconSize is)
          Utility method to load an image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadImage

public static ImageIcon loadImage(ViewUtil.Img img,
                                  String altText,
                                  ViewUtil.IconSize is)
Utility method to load an image.

Parameters:
img - The name of the image, sans size qualifier.
altText - The alternate text for the image.
is - The size of the image.
Returns:
An image or null if not found.

Please visit Base Apps, hosted on Sourceforge.net.

Copyright 2011, Blue Agate Software Entity (BASE)