This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
1. Connect to Java DB 'travel'. 2. Rightclick this table and choose "View Data...". 3. Press "Insert Record" button, add duplicate data and press "OK". Result: "Insert Record" dialog disappears and message about duplicate is shown in the status bar. But customer can miss this message. It will be better to show this message in the dialog and not close dialog to let customer enter different values.
In fact we were displaying the error message, but there was some concern around showing exceptions. Also when user clicks OK it will execute the sql in a background thread, so there is no way we can keep the INSERT dialog open. I could display a error dialog that displays the error message without the stack trace.
http://hg.netbeans.org/main/rev/761be22e9e5b
Verified with build 080804.