- setUrlString( getParameter( Constants.APPLET_PARAM_NAME_FOR_URL_OF_TREE_TO_LOAD ) );
- AptxUtil.printAppletMessage( NAME, "URL of phylogenies to load: \"" + getUrlString() + "\"" );
+ setTreeUrlStr( getParameter( Constants.APPLET_PARAM_NAME_FOR_URL_OF_TREE_TO_LOAD ) );
+ setSpeciesTreeUrlStr( getParameter( Constants.APPLET_PARAM_NAME_FOR_URL_OF_SPECIES_TREE_TO_LOAD ) );
+ if ( !ForesterUtil.isEmpty( getTreeUrlStr() ) ) {
+ AptxUtil.printAppletMessage( NAME, "URL of tree(s) to load: " + getTreeUrlStr() );
+ }
+ else {
+ ForesterUtil.printErrorMessage( NAME, "no URL for tree(s) to load!" );
+ setBackground( ex_background_color );
+ setForeground( ex_font_color );
+ has_exception = true;
+ setMessage1( "no URL for tree(s) to load" );
+ repaint();
+ }
+ if ( !ForesterUtil.isEmpty( getSpeciesTreeUrlStr() ) ) {
+ AptxUtil.printAppletMessage( NAME, "URL of species tree to load: " + getSpeciesTreeUrlStr() );
+ }