- /**\r
- * Displays the given URL in a new browser window\r
- *\r
- * @param url URL to display in browser window.\r
- * <br>New window will be named "HELP_WINDOW"\r
- */\r
- public static void showURL(String url)\r
- {\r
- showURL(url, "HELP");\r
- }\r
-\r
- public static void showURL(String url, String target)\r
- {\r
- if(applet==null)\r
- {\r
- System.out.println("Not running as applet - no browser available.");\r
- }\r
- else\r
- {\r
- try\r
- {\r
- applet.getAppletContext().showDocument(new java.net.URL(url),\r
- target);\r
- }\r
- catch (Exception ex)\r
- {\r
- ex.printStackTrace();\r
- }\r
- }\r
- }\r
-\r
-\r
- /**\r
- * Starts a new LoadingThread for loading an alignment file\r
- *\r
- * @param file file name including full path to file\r
- * @param protocol file or URL or paste\r
- * @param format Fasta, Clustal, PFAM, MSF, PIR, BLC, Jalview\r
- */\r
- public void LoadFile(String file, String protocol, String format)\r
- {\r
- LoadingThread loader = new LoadingThread(file, protocol, format, this);\r
- loader.start();\r
- }\r