VM security problem?
Good day, I've got a problem (but really it's an error) with SWING Applets.
I must say that I'm absolutely new to the Applet programming but, after spending some hours working about the integration of an applet in an HTML page, I have just one exception, that is to say:
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 javax.swing.JFrame.setDefaultCloseOperation(Unknown Source)
at shop.main.JMainApp.initComponents(JMainApp.java:30)
at shop.main.JMainApp.<init>(JMainApp.java:18)
at tools.admin.LogIn.jConnettiMouseClicked(LogIn.java:169)
at tools.admin.LogIn.access$100(LogIn.java:13)
at tools.admin.LogIn$2.mouseClicked(LogIn.java:66)
at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
This ugly mess jumped off when I tried to create a new JFrame, that I've put in the package "shop.main.JAppMain". Here the piece of code that I used to do this, located in a "MouseClicked" event:
try {
new shop.main.JMainApp().setVisible(true);
return;
} catch(Exception e){ e.printStackTrace(); return; }
Hope for someone who can help me, I send you my best regards.
NE_PRPHT
P.s.: My personal English vocabulary is very poor, so excuse me if I can't explain better the problem...

