public class Messages extends Object
Modifier and Type | Method and Description |
---|---|
static Icon |
getIcon(String key) |
static Icon |
getIcon(String key,
boolean large) |
static KeyStroke |
getKeyStroke(String key) |
static KeyStroke |
getKeyStroke(String key,
int mask) |
static Integer |
getMnemonic(String key) |
static KeyStroke |
getOptionalKeyStroke(String key) |
static KeyStroke |
getOptionalKeyStroke(String key,
int mask) |
static Integer |
getOptionalMnemonic(String key) |
static String |
getString(String key)
Gets a string for the given key from this resource bundle or one of its parents.
|
static String |
getString(String key,
String... param1)
Formats the message stored in the resource bundle (using a MessageFormat).
|
public static String getString(String key)
key
- the key for the desired stringNullPointerException
- if key
is null
MissingResourceException
- if no object for the given key can be foundpublic static String getString(String key, String... param1)
key
- the resourcebundle keyparam1
- the parameter for the messageCopyright © 2019 Hitachi Vantara. All rights reserved.