public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static BalloonTipPositioner |
createBalloonTipPositioner()
Retrieve an instance of the balloon tip positioner to be used throughout the application
|
static BalloonTipStyle |
createBalloonTipStyle()
Retrieve an instance of the balloon tip style to be used throughout the application
|
static String |
monospace(String str)
Wraps a string in a monospace font tag (for use in a HTML-formatted label)
|
static void |
setToolTip(JComponent comp,
String text)
Set a tooltip
|
static void |
showErrorMessage(JComponent comp,
String text)
Display an error balloon tip
|
public static void setToolTip(JComponent comp, String text)
comp - sets a tooltip for this componenttext - the contents of the tooltip (you may use html)public static void showErrorMessage(JComponent comp, String text)
comp - attach the balloon tip to this componenttext - error messagepublic static BalloonTipStyle createBalloonTipStyle()
public static BalloonTipPositioner createBalloonTipPositioner()