public enum MessageIcon extends java.lang.Enum<MessageIcon>
toMessageType()
to get a JOptionPane
message type of the icon.Enum Constant and Description |
---|
ERROR
Shows an platform independent error icon.
|
INFO
Shows an platform independent information icon.
|
QUESTION
Show an platform independent question mark icon.
|
WARNING
Shows an platform independent warning icon.
|
Modifier and Type | Method and Description |
---|---|
int |
toMessageType()
Converts the given message icon to a
JOptionPane message type. |
static MessageIcon |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MessageIcon[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageIcon INFO
public static final MessageIcon QUESTION
public static final MessageIcon WARNING
public static final MessageIcon ERROR
public static MessageIcon[] values()
for (MessageIcon c : MessageIcon.values()) System.out.println(c);
public static MessageIcon valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int toMessageType()
JOptionPane
message type.