java jframe popup message code example
Example: java swing alert window
JOptionPane.showMessageDialog(yourFrame,
"WARNING.",
"Warning",
JOptionPane.WARNING_MESSAGE);
JOptionPane.showMessageDialog(yourFrame,
"WARNING.",
"Warning",
JOptionPane.WARNING_MESSAGE);