Running Swing applets without the plugin
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sam_Peters
Posted On:   Thursday, September 27, 2001 02:52 PM

Based on a solution provided on jguru... If you do decide to place swingall.jar on the server, the following tag will work when your applet subclasses JApplet, assuming you associate to the right applet and use the size you desire: Question 1 ---------- this solution works for versions 4.x and later of netscape, opera 5(java enabled) and later, mozilla but gives the following exception in IE. java.lang.ClassNotFoundException: javax.swing.JApplet at com/ms/vm/loader/URLClassLoader.loadClass at java/lang/ClassLoader.loadClassInternal at java/lang/ClassLoader.resolveClass at com/ms/vm/loader/URLClassLoader.loadClass at com/   More>>

Based on a solution provided on jguru...



If you do decide to place swingall.jar on the server, the following tag will work when your applet subclasses JApplet, assuming you associate to the right applet and use the size you desire:









Question 1

----------

this solution works for versions 4.x and later of netscape, opera 5(java enabled) and later, mozilla but gives the following exception in IE.



java.lang.ClassNotFoundException: javax.swing.JApplet
at com/ms/vm/loader/URLClassLoader.loadClass
at java/lang/ClassLoader.loadClassInternal
at java/lang/ClassLoader.resolveClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/vm/loader/URLClassLoader.loadClass
at com/ms/applet/AppletPanel.securedClassLoad
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent





Question 2

----------

instead if i use swing.jar(which only contains the default look & feel implementation and the path info stored as javax/swing/ whereas its com/sun/java/swing in swingall.jar) it seems to work fine on all browsers including IE but gives this exception in IE...



com.ms.security.SecurityExceptionEx[javax/swing/plaf/metal/DefaultMetalTheme. ]: Unable to access system property: swing.plaf.metal.controlFont
at com/ms/security/permissions/PropertyPermission.check
at com/ms/security/PolicyEngine.shallowCheck
at com/ms/security/PolicyEngine.checkCallersPermission
at com/ms/security/StandardSecurityManager.chk
at com/ms/security/StandardSecurityManager.checkPropertyAccess
at java/awt/Font.getFont
at javax/swing/plaf/metal/DefaultMetalTheme.
at javax/swing/plaf/metal/MetalLookAndFeel.createDefaultTheme
at javax/swing/plaf/metal/MetalLookAndFeel.getDefaults
at javax/swing/UIManager.setLookAndFeel
at javax/swing/UIManager.setLookAndFeel
at javax/swing/UIManager.initializeDefaultLAF
at javax/swing/UIManager.initialize
at javax/swing/UIManager.maybeInitialize
at javax/swing/UIManager.getUI
at javax/swing/JPanel.updateUI





Question 3

----------

if at all i get things happen using one of the methods in Question 1 or 2, is there any chance for a swing applet to function if i strip down the swing or swingall jar file in a step by step elimination process to include only the required class files or is it a futile attempt?
   <<Less
About | Sitemap | Contact