As taken from the Javadoc.

JOptionPane.showMessageDialog(parentComponent, message, title, messageType, icon)


// Json