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.
[ BUILD # : 200808170243 ] [ JDK VERSION : 1.6.0_07 ] In the SQL History window, it would be helpful to have a static non-editable display of the number of records currently displayed in the grid. It could be labelled something like "Total Records: #" where # is the number of SQL statements displayed. If the results in the grid are filtered using the COnnection dropdown or the Matching SQL filter, the # should update as well. This feature would be useful once more than 5-10 records are displayed
Helpful for user to show the count. This change is the addition of a label below the table that displays a number of the count of SQL statements returned.
Alternatives to adding a label at the bottom of the table displaying the total # - append the total # to the title of the dialog - append the total # to the title of the row SQL - add a tooltip to the title with the total #
quick comment regarding the alternatives mentioned... i would vote against the 'add a tooltip to the title with the total #' since the total would not be visible or obvious. Either of the other two options sound OK since the number would be visible.
I don't understand what the "title of the row SQL" means? If you do a label, if you have a long list you might not see the total at the bottom - wouldn't it make more sense to put the total at the top of the table? Thanks.
> - append the total # to the title of the row SQL whoops, I meant to say meant to say... - append the total # to the title of the SQL column header Even if there are more rows returned the Table doesn't resize. A scrollbar appears, so a label could be added below the Table. I can provide some screenshots
Created attachment 70385 [details] SQL History with count below the table
Reassigned to new owner.
Created attachment 134651 [details] proposed patch v1 The attached patch does two things: 1. It shows the number of current rows in the list (matching the filter an selected jdbc url) 2. It fixes the problem, that the buttons on the right side of the list stretch, when the history dialog is resized.
Applied as http://hg.netbeans.org/core-main/rev/0cff7de737af Thank you very much!
Integrated into 'main-golden', will be available in build *201305212300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/0cff7de737af User: Jaroslav Havlin <jhavlin@netbeans.org> Log: #144504: Display number of records displayed in SQL History window Patch by Matthias42.