Problem with Java applets

Hi All

I am very very new to Applets, and i am having a problem. Basically i need to create an applet with a GUI that creates a file and writes to it. I found this web pages and modified the code slightly so that it did what i needed:

http://www.captain.at/programming/java/

With the help of a certificate i was able to do it...however, since i have created a GUI that when compiled creates a copy of the class name and puts $1, $2 etc after it. The security manager then throws up an error because these class files arent signed! Does anyone know how to get round this? Are these $ copies created because i am using swing aswell as AWT?

Any help would be really appreciated

[705 byte] By [java_newbea] at [2007-11-26 21:52:22]
# 1

The "$..." extension is used for inner classes. Where the inner class name is a number, it has been generated from an anonymous class.

An anonymous class is generated with code such as, for example:

SwingUtilities.invokeLater(new Runnable() {

public void run()

{

foo();

}

});

You should get into the habit of packaging your classpath into a Jar and then signing that, rather than individual files.

itchyscratchya at 2007-7-10 3:46:21 > top of Java-index,Desktop,Core GUI APIs...
# 2
ahh...how would i do this, as this sounds like it might solve my other problem of calling other classes that are unsigned?
java_newbea at 2007-7-10 3:46:21 > top of Java-index,Desktop,Core GUI APIs...
# 3
http://www.google.co.uk/search?hl=en&q=java+how+to+use+jars&btnG=Google+Search&meta=
itchyscratchya at 2007-7-10 3:46:21 > top of Java-index,Desktop,Core GUI APIs...