public final class JnlpTools extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
adjustDefaultLocale()
|
public static void adjustDefaultLocale()
throws SecurityException
Locale using the information provided through the relevant
System properties. The relevant properties are:user.languageuser.countryuser.variantLocale is performed by exchanging the language,
country and variant of the default Locale with the values of the properties
mentioned above. However, a replacement will only be done if the specific value is not empty. In this case the
default (platform provided) values will remain. This operation will not change anything for applications started
using the java binary (unless the user.* are not changed at runtime before). For
javaws applications using this operation at application startup it is possible to adjust the
Locale properties according to the information provided by the JNLP file (and thus the resulting
System properties. As of the non-destructive nature of this operation it is recommended to call it at
application startup if you plan to distribute it using Java WebStart. However, there is a catch: the
SecurityManager has to grant the permission to change the default Locale.SecurityException - if the SecurityManager denies the change of the default
LocaleCopyright © 2012–2026 cismet GmbH. All rights reserved.