【发布时间】:2019-03-03 01:48:40
【问题描述】:
我使用 IcePDF 作为 PDF 查看器,使用 PropertiesManager 我可以启用/禁用功能,例如:
SwingController controller = new SwingController();
PropertiesManager properties = new PropertiesManager(System.getProperties(),
ResourceBundle.getBundle(PropertiesManager.DEFAULT_MESSAGE_BUNDLE));
properties.setBoolean(PropertiesManager.PROPERTY_SHOW_UTILITY_PRINT, false);
properties.setBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_ANNOTATION, false);
properties.setBoolean(PropertiesManager.PROPERTY_SHOW_UTILITYPANE_ANNOTATION, false);
properties.setBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_ROTATE, false);
properties.setBoolean(PropertiesManager.PROPERTY_SHOW_UTILITY_SAVE, false);
properties.setBoolean(PropertiesManager.PROPERTY_SHOW_TOOLBAR_FIT, false);
SwingViewBuilder factory = new SwingViewBuilder(controller, properties);
但我想更改 Windows 外观,简单的UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); 不起作用。有人可以解决吗?
【问题讨论】:
-
您要设置什么样的外观和感觉?看来您正在设置已设置的内容
-
windows 的,因为默认情况下它是“金属”,我认为它不是很漂亮...
-
有人吗?我找不到答案
标签: java swing user-interface frameworks icepdf