I am doing Swing Application and linking it with the Oracle 8 database. Sometimes if there is Database link problem, the JDeveloper will pop up it's own message in JDialog form to explain the error. How can i replace that error message box with my own JOptionPane message ?