if (c == null) {
// Should not occur
- System.err.println("ERROR: Could not place new component.");
- Thread.dumpStack();
+ ExceptionHandler.handleErrorCondition("ERROR: Could not place new component.");
updateEnabled();
return;
}
// Insert at the end of the parent
return new Pair<RocketComponent,Integer>(parent, null);
default:
- System.err.println("ERROR: Bad position type: "+pos);
- Thread.dumpStack();
+ ExceptionHandler.handleErrorCondition("ERROR: Bad position type: "+pos);
return null;
}
}
sel = 2;
break;
default:
- System.err.println("ERROR: JOptionPane returned "+sel);
- Thread.dumpStack();
+ ExceptionHandler.handleErrorCondition("ERROR: JOptionPane returned "+sel);
return 0;
}