jpanel option print plain_message code example
Example 1: java display message
alert('Message');
Example 2: java joptionpane
JOptionPane.showMessageDialog(frame, "Eggs are not supposed to be green.");
alert('Message');
JOptionPane.showMessageDialog(frame, "Eggs are not supposed to be green.");