|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Newbie question: What's wrong with the Applet SampleHi, and sorry but I try now for three days haven't found any thread with the same problem here in the forum. I'm trying the Sample Applet of http://www.swixml.org/samples/index.html: -SwixApplet.java -on a local Apache /Win32 -with an Java Plug-in 1.5.0_04 and the Html-file: <html> <body leftmargin=0 topmargin=0 bottommargin=0 rightmargin=0 marginwidth=0 marginheight=0> <applet code="SwixApplet" archive="/jars/SwixApplet.jar,/jars/swixml.jar,/jars/jdom.jar" width="100%" height="100%" hspace="0" vspace="0"> <param name="xml" value="xml/applet.xml"/> </applet> </body> </html> The Applet is loaded, shows the GUI and initialized but the button hasn't the implemented function (does not work) and the console shows the message: SwixML 1.5 (#144) java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.reflect.AccessibleObject.setAccessible(Unknown Source) at org.swixml.SwingEngine.mapMembers(Unknown Source) at org.swixml.SwingEngine.mapMembers(Unknown Source) at org.swixml.SwingEngine.insert(Unknown Source) at org.swixml.SwingEngine.insert(Unknown Source) at org.swixml.SwingEngine.insert(Unknown Source) at SwixApplet.init(SwixApplet.java:47) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) This means obviously that something is not accessible, but what and why? applet.xml is loaded and rendered, the jars are loaded, there are no other files to load... The sample is quite simple: applet.xml: <?xml version="1.0" encoding="UTF-8"?> <applet size="640,480"> <panel constraints="BorderLayout.CENTER"> <label DisplayedMnemonic="VK_E" LabelFor="tf" Foreground="blue"> Hello World! </label> <textfield id="tf" Columns="20" Text="Swixml"/> <button id="btn" Text="Click Here" Action="submit"/> </panel> </applet> and the SwixApplet.java exactly like at: http://www.swixml.org/samples/index.html Sample 7. The SwingEngine stops at new SwingEngine( this ).insert( new URL( getCodeBase(), descriptorfile ), this ); What is wrong there? Have had anybody the same problem? Can anybody send my a complete Applet Sample, with html-file, jars as zip? So long... Karl _______________________________________________ Forum mailing list Forum@... http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com |
|
|
|
| Free Forum Powered by Nabble | Forum Help |