The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

This topic is READ ONLY
import-bot (20211) [Avatar] Offline
#1
[Originally posted by bootpe]

Has anyone seen the following problem? I am attempting
to run an applet with a bundled swing 1.1.1 and Internet Explorer 4.0
I am using swingall.jar and want to use the Metal look and Feel.



com.ms.security.SecurityExceptionEx[javax/swing/plaf/metal/DefaultMetalTheme.<init>]:
Unable to access system property: swing.plaf.metal.controlFont
at com/ms/security/permissions/PropertyPermission.check
(PropertyPermission.java)
at com/ms/security/PolicyEngine.shallowCheck (PolicyEngine.java)
at com/ms/security/PolicyEngine.checkCallersPermission (PolicyEngine.java)
at com/ms/security/StandardSecurityManager.chk (StandardSecurityManager.java)
at com/ms/security/StandardSecurityManager.checkPropertyAccess
(StandardSecurityManager.java)
at java/awt/Font.getFont (Font.java)
at javax/swing/plaf/metal/DefaultMetalTheme.<init> (DefaultMetalTheme.java:59)
at javax/swing/plaf/metal/MetalLookAndFeel.createDefaultTheme
(MetalLookAndFeel.java:709)
at javax/swing/plaf/metal/MetalLookAndFeel.getDefaults
(MetalLookAndFeel.java:714)
at javax/swing/UIManager.setLookAndFeel (UIManager.java:363)
at javax/swing/UIManager.setLookAndFeel (UIManager.java:383)
at javax/swing/UIManager.initializeDefaultLAF (UIManager.java:84smilie
at javax/swing/UIManager.initialize (UIManager.java:927)
at javax/swing/UIManager.maybeInitialize (UIManager.java:945)
at javax/swing/UIManager.getUI (UIManager.java:560)
at javax/swing/JPanel.updateUI (JPanel.java:110)
at javax/swing/JPanel.<init> (JPanel.java:66)
at javax/swing/JPanel.<init> (JPanel.java:99)
at javax/swing/JRootPane.createGlassPane (JRootPane.java:224)
at javax/swing/JRootPane.<init> (JRootPane.java:181)
at javax/swing/JApplet.createRootPane (JApplet.java:132)
at javax/swing/JApplet.<init> (JApplet.java:125)
at fxjava/apps/gfxdatabase/gui/GFXDatabase.<init> (GFXDatabase.java:34)
at com/ms/applet/BrowserAppletFrame.newInstance (BrowserAppletFrame.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
at com/ms/applet/AppletPanel.run (AppletPanel.java)
at java/lang/Thread.run (Thread.java)


Peter Booth
Peter.Booth@csfb.com
import-bot (20211) [Avatar] Offline
#2
Re: com.ms.security.SecurityException problem with DefaultMetalTheme
[Originally posted by matt]

I've never seen this, nor have I tried to bundle swingall.jar
with an applet. I'm guessing that if you sign your app in a jar that
will solve the problem.

Does the same thing happen in Netscape?

I saw you posted this message to the advanced swing mailing
list as well. Didn't see any response yet though.. Have you
gotten any?