wood burning stoves*
The moose likes Applets and the fly likes applets using swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "applets using swing" Watch "applets using swing" New topic
Author

applets using swing

Ed Byrnes
Ranch Hand

Joined: Feb 04, 2001
Posts: 33
I've written a simple applet which uses the swing library. It works with the appletviewer and works in Netscape 6.0. I have the 1.3_01 plug-in so it should work with Netscape 4.7 but it doesn't. I get java.lang.Class.Format.Error: class already loaded. The 1.3 demo applets on Sun's plug-in page do work with 4.7. Any ideas about how I might fix this? Thanks!
Ed Byrnes
Ranch Hand

Joined: Feb 04, 2001
Posts: 33
Here are the error I get with the above mentioned applet...
Error after running once in Netscape 6
java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkExit(Unknown Source)
at java.lang.Runtime.exit(Unknown Source)
at java.lang.System.exit(Unknown Source)
at HundredSwing.init(HundredSwing.java:39)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Error without running once in Netscape 4.7
java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at sun.applet.AppletSecurity.checkAccess(Unknown Source)
at java.lang.ThreadGroup.checkAccess(Unknown Source)
at java.lang.Thread.init(Unknown Source)
at java.lang.Thread.<init>(Unknown Source)
at javax.swing.TimerQueue.start(Unknown Source)
at javax.swing.TimerQueue.<init>(Unknown Source)
at javax.swing.TimerQueue.sharedInstance(Unknown Source)
at javax.swing.JApplet.<init>(Unknown Source)
at HundredSwing.<init>(HundredSwing.java:5)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at sun.applet.AppletSecurity.checkAccess(Unknown Source)
at java.lang.ThreadGroup.checkAccess(Unknown Source)
at java.lang.Thread.init(Unknown Source)
at java.lang.Thread.<init>(Unknown Source)
at javax.swing.TimerQueue.start(Unknown Source)
at javax.swing.TimerQueue.<init>(Unknown Source)
at javax.swing.TimerQueue.sharedInstance(Unknown Source)
at javax.swing.JApplet.<init>(Unknown Source)
at HundredSwing.<init>(HundredSwing.java:5)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
maateen ashraf
Ranch Hand

Joined: Jan 08, 2001
Posts: 122
u have to either download the plugin for swing or u have to conver the swing applet into simple applet....
go to java site & download the html convertor...
 
Don't get me started about those stupid light bulbs.
 
subject: applets using swing
 
Similar Threads
Problem with KeyEvent and VK_TAB
I'm new and already stumped!
delete form field
swing
need help with Mozilla