今天在寫socke聊天程序時,發現JOptionPane導入不進去,查閱了一下,把問題解決了
先打開eclipse->procket->properties 找到圖示中的Deprecated and restricted API 將其中相關的改爲Ignore就可以啦 如圖中所示