I have a MIDlet and want to instantiate another MIDLet. I get a security exception just using the new for the MIDlet. So what is the standard procedure.

java.lang.SecurityException: Application not authorized to access the restricted API
at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(+40)
at com.sun.midp.security.SecurityToken.checkIfPermissionAllowed(+7)
at com.sun.midp.midletsuite.MIDletSuiteImpl.checkIfPermissionAllowed(+8)
at com.sun.midp.midlet.MIDletState.<init>(+78)
at javax.microedition.midlet.MIDletProxy.<init>(+5)
at javax.microedition.midlet.MIDlet.<init>(+13)
at sample.testMIDP.<init>(+4)



Also anyone want to answer or comment on the CustomItem for resize needed when in a form please do. It works fine in the emulator and is well documented that it should work; in that when a CustomItem needs to resize it can call setPreferredSize() to unlock a dimentsion so the Form can resize the area.