import javax.swing.JOptionPane;
Java 8 api:
1.
public static void showMessageDialog(Component parentComponent,
Object message)
throws HeadlessException
Brings up an information-message dialog titled "Message".
Parameters:
parentComponent - determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used
message - the Object to display
Throws:
HeadlessException - if GraphicsEnvironment.isHeadless returns true
2.
public static void showMessageDialog(Component parentComponent,
Object message,
String title,
int messageType)
throws HeadlessException
Brings up a dialog that displays a message using a default icon determined by the messageType parameter.
Parameters:

1086

被折叠的 条评论
为什么被折叠?



