Got rid of ErrorWindow since the same task can be completed with a
JOptionPane.