jdraw.ui
Class Misc

java.lang.Object
  |
  +--jdraw.ui.Misc

public final class Misc
extends Object

This class exhibits miscellaneous helper functions.


Constructor Summary
private Misc()
          This class is not intended to be instancied.
 
Method Summary
static Cursor buildCursor(String strFilename, Point ptHotSpot, String strAccessibleName)
          Buils a cursor from the specified image.
static void centerWindow(Window wndWindow)
          Centers a window on the screen.
static void setLookAndFeel(Component cComponent, String strNewLFClassName)
          Sets the specified look and feel for the specified component tree.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

Misc

private Misc()
This class is not intended to be instancied.
Method Detail

buildCursor

public static Cursor buildCursor(String strFilename,
                                 Point ptHotSpot,
                                 String strAccessibleName)
Buils a cursor from the specified image.
Parameters:
strFilename - the image file name
ptHotSpot - the hot spot position
strAccessibleName - the accessible string

centerWindow

public static final void centerWindow(Window wndWindow)
Centers a window on the screen.

setLookAndFeel

public static void setLookAndFeel(Component cComponent,
                                  String strNewLFClassName)
Sets the specified look and feel for the specified component tree.