message dialog in java code example
Example 1: java display message
alert('Message');
Example 2: java swing dialog box
JOptionPane.showMessageDialog(null, "java is fun");
alert('Message');
JOptionPane.showMessageDialog(null, "java is fun");