+\r
+ /**\r
+ * Discovers whether the given file is in the Applet Archive\r
+ * @param file String\r
+ * @return boolean\r
+ */\r
+ boolean inArchive(String file)\r
+ {\r
+ //This might throw a security exception in certain browsers\r
+ //Netscape Communicator for instance.\r
+ try{\r
+ return (getClass().getResourceAsStream("/" + file) != null);\r
+ }catch(Exception ex)\r
+ {\r
+ System.out.println("Exception checking resources: "+file+" "+ex);\r
+ return false;\r
+ }\r
+ }\r
+\r
+ String addProtocol(String file)\r
+ {\r
+ if (file.indexOf("://") == -1)\r
+ file = getCodeBase() + file;\r
+\r
+ return file;\r
+ }\r
+\r