Joptionpane
JOptionPane.showMessageDialog(null, "This is a Message Dialog");
JavaBeast
JOptionPane.showMessageDialog(null, "This is a Message Dialog");
JOptionPane.showMessageDialog(frame, "A basic JOptionPane message dialog");
alert('Message');