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.

View | Details | Raw Unified | Return to bug 156555
Collapse All | Expand All

(-)db.dataview/src/org/netbeans/modules/db/dataview/output/DataViewTableUI.java (-2 / +2 lines)
Lines 274-281 Link Here
274
            }
274
            }
275
275
276
            if (e.getSource() == table.getSelectionModel() && table.getRowSelectionAllowed()) {
276
            if (e.getSource() == table.getSelectionModel() && table.getRowSelectionAllowed()) {
277
                int first = e.getFirstIndex();
277
                boolean rowSelected = table.getSelectedRows().length > 0;
278
                if (first >= 0 && tablePanel.isEditable()) {
278
                if (rowSelected && tablePanel.isEditable()) {
279
                    tablePanel.enableDeleteBtn(true);
279
                    tablePanel.enableDeleteBtn(true);
280
                } else {
280
                } else {
281
                    tablePanel.enableDeleteBtn(false);
281
                    tablePanel.enableDeleteBtn(false);

Return to bug 156555