message box in java swing code example
Example 1: java display message
alert('Message');
Example 2: java joptionpane
JOptionPane.showMessageDialog(frame, "A basic JOptionPane message dialog");
alert('Message');
JOptionPane.showMessageDialog(frame, "A basic JOptionPane message dialog");