org.genepi.swing
Class SwingUtils

java.lang.Object
  extended by org.genepi.swing.SwingUtils

public class SwingUtils
extends java.lang.Object

Misc utils related to swing objects.

Author:
Stˇphane Descorps-Declere

Constructor Summary
SwingUtils()
           
 
Method Summary
static java.awt.Color getBlack()
           
static javax.swing.ImageIcon getIconAsResource(java.lang.String path)
          Get required icon or image with specified url
static javax.swing.ImageIcon getIconByURL(java.lang.String sURL)
          Get required icon or image with specified url
static java.awt.Color getWhite()
           
static java.awt.Color switchColor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingUtils

public SwingUtils()
Method Detail

getIconByURL

public static javax.swing.ImageIcon getIconByURL(java.lang.String sURL)
Get required icon or image with specified url

Parameters:
sURL -
Returns:
the image

getIconAsResource

public static javax.swing.ImageIcon getIconAsResource(java.lang.String path)
Get required icon or image with specified url

Parameters:
sURL -
Returns:
the image

getBlack

public static java.awt.Color getBlack()

getWhite

public static java.awt.Color getWhite()

switchColor

public static java.awt.Color switchColor()