Class powersoft.jcm.ui.UiUtil
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class powersoft.jcm.ui.UiUtil

java.lang.Object
   |
   +----powersoft.jcm.ui.UiUtil

public class UiUtil
extends Object
Provides generic user interface related utility functions.

Constructor Index

 o UiUtil()

Method Index

 o paintFocusRect(Component, Graphics, int, int, int, int)
Paints a focus rectangle.
 o waitForImage(Component, Image)
Waits for the given image to be completely loaded before returning.

Constructors

 o UiUtil
  public UiUtil()

Methods

 o waitForImage
  public static void waitForImage(Component comp,
                                  Image image)
Waits for the given image to be completely loaded before returning.
Parameters:
comp - The component with which the image is associated.
image - The image to wait for.
 o paintFocusRect
  public static void paintFocusRect(Component comp,
                                    Graphics g,
                                    int x,
                                    int y,
                                    int width,
                                    int height)
Paints a focus rectangle.
Parameters:
comp - The component with which the focus rectangle is associated.
g - The graphics context on which to draw.
x - The x coordinate of the rectangle.
y - The y coordinate of the rectangle.
width - The width of the rectangle.
height - The height of the rectangle.

All Packages  Class Hierarchy  This Package  Previous  Next  Index