newAlignFrame.statusBar.setText("Successfully loaded file "
+ file);
-
+
String treeFile = applet.getParameter("tree");
if (treeFile == null)
{
{
this.separator = separator;
}
+
+ /**
+ * get boolean value of applet parameter 'name' and return default if parameter is not set
+ * @param name name of paremeter
+ * @param def the value to return otherwise
+ * @return true or false
+ */
+ public boolean getDefaultParameter(String name, boolean def)
+ {
+ String stn;
+ if ((stn=getParameter(name)) == null)
+ {
+ return def;
+ }
+ if (stn.toLowerCase().equals("true"))
+ {
+ return true;
+ }
+ return false;
+ }
}