com.ptc.windchill.upgrade.util
Class UiUtil
java.lang.Object
com.ptc.windchill.upgrade.util.UiUtil
- public class UiUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UiUtil
public UiUtil()
safePosition
public static void safePosition(Component component,
Rectangle desired_bounds,
Dimension min_size)
- Positions the window on the screen, ensuring that it does not hang off any edge of the screen.
If the window is bigger than the screen, it will be resized
wrapToReasonableWidth
public static String wrapToReasonableWidth(String message)
wrapToWidth
public static String wrapToWidth(String message,
int width)