Skip to content
Snippets Groups Projects
Commit 409cc2bb authored by Brutzman, Don's avatar Brutzman, Don
Browse files

cosmetic

parent 52407287
No related branches found
No related tags found
No related merge requests found
......@@ -680,7 +680,8 @@ public class X3DBrowserAWTPanel extends Panel
//---------------------------------------------------------
@Override
public void loadURL(String url) throws IOException {
public void loadURL(String url) throws IOException
{
urlTextField.setText(url);
URL nextURL = new URL(url);
......@@ -703,22 +704,26 @@ public class X3DBrowserAWTPanel extends Panel
if (obj instanceof VRMLScene)
parsed_scene = (VRMLScene) obj;
else {
else
{
if (obj != null )
System.out.println("Type: " + obj.getClass().toString());
System.out.println("[X3DBrowserAWTPanel] Content type: " + obj.getClass().toString());
return;
}
} catch(IOException ioe) {
// setError("IO Error loading file");
}
catch(IOException ioe) {
System.err.println("[X3DBrowserAWTPanel] Input/Output (I/O) Error loading file");
return;
} catch(VRMLParseException vpe) {
}
catch(VRMLParseException vpe) {
console.errorReport("Exception parsing file at line: " +
vpe.getLineNumber() + " col: " +
vpe.getColumnNumber() + "\n" +
vpe.getMessage(),
vpe);
} catch(UnsupportedServiceException upe) {
console.errorReport("Unexpected exception during parsing", upe);
}
catch(UnsupportedServiceException upe) {
console.errorReport("[X3DBrowserAWTPanel] Unexpected exception during parsing", upe);
}
if(parsed_scene == null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment