Added error listener with a JDialog popup.