JOptionPane.showMessageDialog(null,"错误","title",JOptionPane.PLAIN_MESSAGE);
应该没问题!