2013-06-29 69 views

回答

1

使用当前的LAF创建组件。不能保证它会工作,但你可以这样做:

  1. 保存当前LAF
  2. 集LAF到Windows
  3. 显示的JOptionPane
  4. 恢复LAF以保存LAF

How to Set the Look and Feel了解更多信息。

+0

感谢您的链接,解决了这个问题。 我做的是添加 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); – user2526311

+0

+1利用原生L&F;相关示例见[这里](http://stackoverflow.com/a/14262706/230513)。 – trashgod