Joptionpane can be used to get input options or display error msg or display
some msg as a info . the options are pretty simple and straight forward.
here's a example
JOptionPane.showMessageDialog( parent_panel_name,
msg,title,JOptionPane.INFORMATION_MESSAGE
);
just check Joptionpane api for different types of messages ....