Appendix B - Code Snippets p. 561 - Add a snippet for the LoginDlg Step 1. Open Notepad and type in the following code: // place this in the imports section import oracle.dacf.control.LoginFailureException; // place this in the jbInit() method under the call to loginDlg1.setDataItemName if (loginDlg1.showDialog() == JOptionPane.CANCEL_OPTION) { throw new LoginFailureException(); } --------------------------------------------------------------------------