0
我一直在試圖與JOptionPane
顯示在Swing一個消息通過使用:搖擺的JOptionPane背景色不同
JOptionPane.showMessageDialog(Component parentComponent,
Object message,
String title,
int messageType)
throws HeadlessException
消息框看起來如圖here:
當我添加此行
UIManager.put("OptionPane.background", Color.white);
選項窗格看起來如圖所示here:
我應該爲了獲得在消息框中純白色背景嗎?
沒有幫助我。任何其他建議請 –
@LakshmiNarasimhanRavichandran複製我的更新代碼並進行測試。 – Muhammad
@Muhammd這也沒有幫助。對於那個很抱歉!! –