I am trying to call com.jidesoft.plaf.LookAndFeelFactory.installDefaultLookAndFeelAndExtension in order to ensure the proper look and feel extensions are in place. This was all working fine in earlier Mac OSX versions but Apple has deprecated and removed the old look and feel (apple.laf) from the platform and instead changed to a package com.apple.laf. The JIDE call to set the default look and feel appears to still always try the old apple.laf so I get the following exception. I have tried several things to work around this but nothing gives me the desired behaviour. I was able to get it to work if I call UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName()) first before the install method but everything looks like the default Metal look and feel then which I don't want here. I am trying to get native looking Mac styles.
Any thoughts?
Stack Trace:
java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.apple.laf)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
at java.security.AccessController.checkPermission(AccessController.java:546)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1512)
at sun.applet.AppletSecurity.checkPackageAccess(AppletSecurity.java:266)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:141)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at com.jidesoft.plaf.LookAndFeelFactory.loadLnfClass(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.isAssignableFrom(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.isLnfInUse(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
at com.jidesoft.plaf.LookAndFeelFactory.installDefaultLookAndFeelAndExtension(Unknown Source)