Class Tools
java.lang.Object
org.languagetool.gui.Tools
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcenterDialog(JDialog dialog) Set dialog location to the center of the screenstatic voidconfigureFromRules(org.languagetool.JLanguageTool langTool, Configuration config) static StringReturns translation of the UI element without the control character&.static chargetMnemonic(String label) Returns mnemonic of a UI element.static StringshortenComment(String comment) LibO shortens menu items with more than ~100 characters by dropping text in the middle.
-
Method Details
-
shortenComment
-
getLabel
-
getMnemonic
Returns mnemonic of a UI element.- Parameters:
label- String Label of the UI element- Returns:
- Mnemonic of the UI element, or
-