今天在写socke聊天程序时,发现JOptionPane导入不进去,查阅了一下,把问题解决了
先打开eclipse->procket->properties 找到图示中的Deprecated and restricted API 将其中相关的改为Ignore就可以啦 如图中所示