我使用 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 Look And Feel,简单UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
的不行。有人可以解决吗?