JOptionPane.showMessageDialog(frame, "No recipient selected for mail!", // message "No recipient!?", // titlebar JOptionPane.INFORMATION_MESSAGE); // icon