sophware.awt
Class SEToolkit

java.lang.Object
  extended bysophware.awt.SEToolkit

public class SEToolkit
extends java.lang.Object

SETookit is a collection of static utility methods.

Version:
1.0, 18 Feb 01
Author:
Russell Soph

Constructor Summary
SEToolkit()
           
 
Method Summary
static java.awt.Frame getFrame(java.awt.Component comp)
          Gets the frame containing the given Component.
static java.awt.Image getImage(java.lang.String file)
          Loads an image from a file in the user's CLASSPATH
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SEToolkit

public SEToolkit()
Method Detail

getImage

public static java.awt.Image getImage(java.lang.String file)
                               throws java.io.IOException
Loads an image from a file in the user's CLASSPATH

Parameters:
file - an absolute or relative path to an image file
Throws:
java.io.IOException

getFrame

public static java.awt.Frame getFrame(java.awt.Component comp)
Gets the frame containing the given Component.

Parameters:
comp - component for which frame is needed.