Added a few error codes to BaseJFrame.