不知道...
JOptionPane.showMessageDialog(this,"Please Enter Data","Error",JOptionPane.ERROR_MESSAGE);
将this的属性设一下..
俺不知道啊!!
猜测而已!