public final class Tools extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addHyperlinkListener(JTextPane pane) |
static void |
centerDialog(JDialog dialog)
Set dialog location to the center of the screen
|
static void |
configureFromRules(JLanguageTool lt,
Configuration config) |
static String |
getLabel(String label)
Returns translation of the UI element without the control character
& . |
static char |
getMnemonic(String label)
Returns mnemonic of a UI element.
|
static void |
openURL(String url)
Launches the default browser to display a URL.
|
static String |
shortenComment(String comment)
LibO shortens menu items with more than ~100 characters by dropping text in the middle.
|
public static String shortenComment(String comment)
public static String getLabel(String label)
&
. To
have &
in the UI, use &&
.label
- Label to convert.public static char getMnemonic(String label)
label
- String Label of the UI element