【发布时间】:2018-01-22 07:37:23
【问题描述】:
我一直在尝试使用 JOptionPane 在 Swing 中显示一个消息框:
JOptionPane.showMessageDialog(Component parentComponent,
Object message,
String title,
int messageType)
throws HeadlessException
消息框如图here:
当我添加这一行时
UIManager.put("OptionPane.background", Color.white);
选项窗格如图所示here:
我应该怎么做才能在消息框中获得纯白色背景?
【问题讨论】:
标签: java swing joptionpane uimanager