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.
All buttons should be on the right side, as it is common in other NetBeans dialogs. Moreover, the Execute button should be named OK. Moreover, you should not create your own JDialog's in NetBeans. Use DialogDescriptor and DialogDisplayer. You should also not need to set the dialog parent, the NetBeans API's usually do that for you.
Same for ShowSQLDialog. There the OK button isn't even centered! Please move it to the right, and rename it to Close.
Fixed. http://hg.netbeans.org/dbdataview/rev/341d4b5fe533 Regarding DialogDescriptor and DialogDisplayer, not sure how I use them in Matisse, In fact I was using then for popups, but there seems to be no easy way to set Cancel button as default. OK or YES get executed when user type escape. There were some bug filed around this. Anyway, Please don't plug multiple issues into one report. That makes it difficult to fix and checkin. Open a separate issue with some pointer how to use DialogDescriptor and DialogDisplayer, if you think we must follow that; I also need to know how that will handle "escape"
Verified with build 080709