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 144504
Collapse All | Expand All

(-)db.core/src/org/netbeans/modules/db/sql/execute/ui/Bundle.properties (+1 lines)
Lines 105-107 Link Here
105
LBL_DeleteAll=Delete All
105
LBL_DeleteAll=Delete All
106
DESC_DeleteAll=Really delete all entries from the SQL history?
106
DESC_DeleteAll=Really delete all entries from the SQL history?
107
ACSD_DeleteAll=Delete all SQL statements from history
107
ACSD_DeleteAll=Delete all SQL statements from history
108
SQLHistoryPanel.matchingRowsLabel.text=0
(-)db.core/src/org/netbeans/modules/db/sql/execute/ui/SQLHistoryPanel.form (-24 / +34 lines)
Lines 17-59 Link Here
17
    <DimensionLayout dim="0">
17
    <DimensionLayout dim="0">
18
      <Group type="103" groupAlignment="0" attributes="0">
18
      <Group type="103" groupAlignment="0" attributes="0">
19
          <Group type="102" attributes="0">
19
          <Group type="102" attributes="0">
20
              <EmptySpace max="-2" attributes="0"/>
20
              <EmptySpace min="-2" max="-2" attributes="0"/>
21
              <Group type="103" groupAlignment="0" attributes="0">
21
              <Group type="103" groupAlignment="0" attributes="0">
22
                  <Group type="102" alignment="0" attributes="0">
23
                      <Component id="inputWarningLabel" pref="174" max="32767" attributes="0"/>
24
                      <EmptySpace min="-2" pref="493" max="-2" attributes="0"/>
25
                  </Group>
26
                  <Group type="102" alignment="1" attributes="0">
27
                      <Group type="103" groupAlignment="1" attributes="0">
22
                  <Group type="102" attributes="0">
28
                  <Group type="102" attributes="0">
23
                      <Group type="103" groupAlignment="0" attributes="0">
29
                              <Component id="sqlLimitLabel" min="-2" max="-2" attributes="0"/>
24
                          <Component id="jScrollPane1" pref="568" max="32767" attributes="0"/>
30
                              <EmptySpace max="-2" attributes="0"/>
25
                          <Group type="102" attributes="0">
31
                              <Component id="sqlLimitTextField" min="-2" pref="62" max="-2" attributes="0"/>
32
                              <EmptySpace max="-2" attributes="0"/>
33
                              <Component id="sqlLimitButton" min="-2" max="-2" attributes="0"/>
34
                              <EmptySpace max="32767" attributes="0"/>
35
                              <Component id="matchingRowsLabel" min="-2" max="-2" attributes="0"/>
36
                          </Group>
37
                          <Component id="jScrollPane1" alignment="0" pref="595" max="32767" attributes="0"/>
38
                          <Group type="102" alignment="0" attributes="0">
26
                              <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
39
                              <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
27
                              <EmptySpace type="unrelated" max="-2" attributes="0"/>
40
                              <EmptySpace type="unrelated" max="-2" attributes="0"/>
28
                              <Component id="connectionUrlComboBox" pref="224" max="32767" attributes="0"/>
41
                              <Component id="connectionUrlComboBox" pref="218" max="32767" attributes="0"/>
29
                              <EmptySpace type="separate" max="-2" attributes="0"/>
42
                              <EmptySpace type="separate" max="-2" attributes="0"/>
30
                              <Component id="jLabel2" min="-2" max="-2" attributes="0"/>
43
                              <Component id="jLabel2" min="-2" max="-2" attributes="0"/>
31
                              <EmptySpace type="unrelated" max="-2" attributes="0"/>
44
                              <EmptySpace type="unrelated" max="-2" attributes="0"/>
32
                              <Component id="searchTextField" min="-2" pref="147" max="-2" attributes="0"/>
45
                              <Component id="searchTextField" min="-2" pref="147" max="-2" attributes="0"/>
33
                          </Group>
46
                          </Group>
34
                      </Group>
47
                      </Group>
35
                      <EmptySpace max="-2" attributes="0"/>
48
                      <EmptySpace min="-2" max="-2" attributes="0"/>
36
                      <Group type="103" groupAlignment="0" attributes="0">
49
                      <Group type="103" groupAlignment="0" attributes="0">
37
                          <Component id="insertSQLButton" pref="87" max="32767" attributes="1"/>
50
                          <Component id="insertSQLButton" min="-2" pref="102" max="-2" attributes="1"/>
38
                          <Component id="deleteSQLButtton" alignment="0" pref="87" max="32767" attributes="1"/>
51
                          <Component id="deleteSQLButton" alignment="0" min="-2" pref="102" max="-2" attributes="1"/>
39
                          <Component id="deleteAllSQLButton" alignment="0" max="32767" attributes="0"/>
52
                          <Component id="deleteAllSQLButton" alignment="0" min="-2" pref="102" max="-2" attributes="0"/>
40
                      </Group>
53
                      </Group>
41
                      <EmptySpace max="-2" attributes="0"/>
54
                      <EmptySpace min="-2" max="-2" attributes="0"/>
42
                  </Group>
55
                  </Group>
43
                  <Group type="102" alignment="0" attributes="0">
44
                      <Component id="inputWarningLabel" pref="174" max="32767" attributes="0"/>
45
                      <EmptySpace min="-2" pref="493" max="-2" attributes="0"/>
46
                  </Group>
56
                  </Group>
47
                  <Group type="102" alignment="0" attributes="0">
48
                      <Component id="sqlLimitLabel" min="-2" max="-2" attributes="0"/>
49
                      <EmptySpace max="-2" attributes="0"/>
50
                      <Component id="sqlLimitTextField" min="-2" pref="62" max="-2" attributes="0"/>
51
                      <EmptySpace max="-2" attributes="0"/>
52
                      <Component id="sqlLimitButton" min="-2" max="-2" attributes="0"/>
53
                  </Group>
57
                  </Group>
54
              </Group>
58
              </Group>
55
          </Group>
56
      </Group>
57
    </DimensionLayout>
59
    </DimensionLayout>
58
    <DimensionLayout dim="1">
60
    <DimensionLayout dim="1">
59
      <Group type="103" groupAlignment="0" attributes="0">
61
      <Group type="103" groupAlignment="0" attributes="0">
Lines 72-78 Link Here
72
                      <EmptySpace pref="141" max="32767" attributes="0"/>
74
                      <EmptySpace pref="141" max="32767" attributes="0"/>
73
                      <Component id="deleteAllSQLButton" min="-2" max="-2" attributes="0"/>
75
                      <Component id="deleteAllSQLButton" min="-2" max="-2" attributes="0"/>
74
                      <EmptySpace max="-2" attributes="0"/>
76
                      <EmptySpace max="-2" attributes="0"/>
75
                      <Component id="deleteSQLButtton" min="-2" max="-2" attributes="0"/>
77
                      <Component id="deleteSQLButton" min="-2" max="-2" attributes="0"/>
76
                  </Group>
78
                  </Group>
77
                  <Component id="jScrollPane1" alignment="1" pref="228" max="32767" attributes="0"/>
79
                  <Component id="jScrollPane1" alignment="1" pref="228" max="32767" attributes="0"/>
78
              </Group>
80
              </Group>
Lines 81-86 Link Here
81
                  <Component id="sqlLimitTextField" alignment="3" min="-2" max="-2" attributes="0"/>
83
                  <Component id="sqlLimitTextField" alignment="3" min="-2" max="-2" attributes="0"/>
82
                  <Component id="sqlLimitButton" alignment="3" min="-2" max="-2" attributes="0"/>
84
                  <Component id="sqlLimitButton" alignment="3" min="-2" max="-2" attributes="0"/>
83
                  <Component id="sqlLimitLabel" alignment="3" min="-2" max="-2" attributes="0"/>
85
                  <Component id="sqlLimitLabel" alignment="3" min="-2" max="-2" attributes="0"/>
86
                  <Component id="matchingRowsLabel" alignment="3" min="-2" max="-2" attributes="0"/>
84
              </Group>
87
              </Group>
85
              <EmptySpace max="-2" attributes="0"/>
88
              <EmptySpace max="-2" attributes="0"/>
86
              <Component id="inputWarningLabel" min="-2" pref="26" max="-2" attributes="0"/>
89
              <Component id="inputWarningLabel" min="-2" pref="26" max="-2" attributes="0"/>
Lines 253-259 Link Here
253
        <Property name="verifyInputWhenFocusTarget" type="boolean" value="false"/>
256
        <Property name="verifyInputWhenFocusTarget" type="boolean" value="false"/>
254
      </Properties>
257
      </Properties>
255
    </Component>
258
    </Component>
256
    <Component class="javax.swing.JButton" name="deleteSQLButtton">
259
    <Component class="javax.swing.JButton" name="deleteSQLButton">
257
      <Properties>
260
      <Properties>
258
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
261
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
259
          <ResourceString bundle="org/netbeans/modules/db/sql/execute/ui/Bundle.properties" key="LBL_Delete" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
262
          <ResourceString bundle="org/netbeans/modules/db/sql/execute/ui/Bundle.properties" key="LBL_Delete" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
Lines 264-270 Link Here
264
        <Property name="enabled" type="boolean" value="false"/>
267
        <Property name="enabled" type="boolean" value="false"/>
265
      </Properties>
268
      </Properties>
266
      <Events>
269
      <Events>
267
        <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="deleteSQLButttonActionPerformed"/>
270
        <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="deleteSQLButtonActionPerformed"/>
268
      </Events>
271
      </Events>
269
      <AuxValues>
272
      <AuxValues>
270
        <AuxValue name="generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
273
        <AuxValue name="generateMnemonicsCode" type="java.lang.Boolean" value="true"/>
Lines 283-287 Link Here
283
        <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="deleteAllSQLButtonActionPerformed"/>
286
        <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="deleteAllSQLButtonActionPerformed"/>
284
      </Events>
287
      </Events>
285
    </Component>
288
    </Component>
289
    <Component class="javax.swing.JLabel" name="matchingRowsLabel">
290
      <Properties>
291
        <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
292
          <ResourceString bundle="org/netbeans/modules/db/sql/execute/ui/Bundle.properties" key="SQLHistoryPanel.matchingRowsLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
293
        </Property>
294
      </Properties>
295
    </Component>
286
  </SubComponents>
296
  </SubComponents>
287
</Form>
297
</Form>
(-)db.core/src/org/netbeans/modules/db/sql/execute/ui/SQLHistoryPanel.java (-29 / +49 lines)
Lines 106-111 Link Here
106
        rowSorter.setSortsOnUpdates(true);
106
        rowSorter.setSortsOnUpdates(true);
107
        rowSorter.sort();
107
        rowSorter.sort();
108
108
109
        rowSorter.addRowSorterListener(new RowSorterListener() {
110
111
            @Override
112
            public void sorterChanged(RowSorterEvent e) {
113
                updateRowCount();
114
            }
115
        });
116
        
109
        sqlTableSelektion = sqlHistoryTable.getSelectionModel();
117
        sqlTableSelektion = sqlHistoryTable.getSelectionModel();
110
118
111
        updateURLList();
119
        updateURLList();
Lines 115-120 Link Here
115
            @Override
123
            @Override
116
            public void tableChanged(TableModelEvent e) {
124
            public void tableChanged(TableModelEvent e) {
117
                updateURLList();
125
                updateURLList();
126
                updateRowCount();
118
            }
127
            }
119
        });
128
        });
120
129
Lines 154-163 Link Here
154
                    public void valueChanged(ListSelectionEvent e) {
163
                    public void valueChanged(ListSelectionEvent e) {
155
                        if (sqlTableSelektion.isSelectionEmpty()) {
164
                        if (sqlTableSelektion.isSelectionEmpty()) {
156
                            insertSQLButton.setEnabled(false);
165
                            insertSQLButton.setEnabled(false);
157
                            deleteSQLButtton.setEnabled(false);
166
                            deleteSQLButton.setEnabled(false);
158
                        } else {
167
                        } else {
159
                            insertSQLButton.setEnabled(true);
168
                            insertSQLButton.setEnabled(true);
160
                            deleteSQLButtton.setEnabled(true);
169
                            deleteSQLButton.setEnabled(true);
161
            }
170
            }
162
    }
171
    }
163
                });
172
                });
Lines 171-176 Link Here
171
            });
180
            });
172
        }
181
        }
173
182
183
    private void updateRowCount() {
184
        matchingRowsLabel.setText(Integer.toString(sqlHistoryTable.getRowCount()));
185
    }
186
    
174
    private void updateFilter() {
187
    private void updateFilter() {
175
        List<RowFilter<HistoryTableModel, Integer>> rowFilter = new ArrayList<RowFilter<HistoryTableModel, Integer>>();
188
        List<RowFilter<HistoryTableModel, Integer>> rowFilter = new ArrayList<RowFilter<HistoryTableModel, Integer>>();
176
189
Lines 259-266 Link Here
259
        sqlLimitTextField = new javax.swing.JTextField();
272
        sqlLimitTextField = new javax.swing.JTextField();
260
        sqlLimitButton = new javax.swing.JButton();
273
        sqlLimitButton = new javax.swing.JButton();
261
        inputWarningLabel = new javax.swing.JLabel();
274
        inputWarningLabel = new javax.swing.JLabel();
262
        deleteSQLButtton = new javax.swing.JButton();
275
        deleteSQLButton = new javax.swing.JButton();
263
        deleteAllSQLButton = new javax.swing.JButton();
276
        deleteAllSQLButton = new javax.swing.JButton();
277
        matchingRowsLabel = new javax.swing.JLabel();
264
278
265
        jLabel1.setText(org.openide.util.NbBundle.getMessage(SQLHistoryPanel.class, "LBL_Connection")); // NOI18N
279
        jLabel1.setText(org.openide.util.NbBundle.getMessage(SQLHistoryPanel.class, "LBL_Connection")); // NOI18N
266
280
Lines 330-341 Link Here
330
        inputWarningLabel.setRequestFocusEnabled(false);
344
        inputWarningLabel.setRequestFocusEnabled(false);
331
        inputWarningLabel.setVerifyInputWhenFocusTarget(false);
345
        inputWarningLabel.setVerifyInputWhenFocusTarget(false);
332
346
333
        org.openide.awt.Mnemonics.setLocalizedText(deleteSQLButtton, org.openide.util.NbBundle.getMessage(SQLHistoryPanel.class, "LBL_Delete")); // NOI18N
347
        org.openide.awt.Mnemonics.setLocalizedText(deleteSQLButton, org.openide.util.NbBundle.getMessage(SQLHistoryPanel.class, "LBL_Delete")); // NOI18N
334
        deleteSQLButtton.setToolTipText(org.openide.util.NbBundle.getMessage(SQLHistoryPanel.class, "ACSD_Delete")); // NOI18N
348
        deleteSQLButton.setToolTipText(org.openide.util.NbBundle.getMessage(SQLHistoryPanel.class, "ACSD_Delete")); // NOI18N
335
        deleteSQLButtton.setEnabled(false);
349
        deleteSQLButton.setEnabled(false);
336
        deleteSQLButtton.addActionListener(new java.awt.event.ActionListener() {
350
        deleteSQLButton.addActionListener(new java.awt.event.ActionListener() {
337
            public void actionPerformed(java.awt.event.ActionEvent evt) {
351
            public void actionPerformed(java.awt.event.ActionEvent evt) {
338
                deleteSQLButttonActionPerformed(evt);
352
                deleteSQLButtonActionPerformed(evt);
339
            }
353
            }
340
        });
354
        });
341
355
Lines 347-352 Link Here
347
            }
361
            }
348
        });
362
        });
349
363
364
        matchingRowsLabel.setText(org.openide.util.NbBundle.getMessage(SQLHistoryPanel.class, "SQLHistoryPanel.matchingRowsLabel.text")); // NOI18N
365
350
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
366
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
351
        this.setLayout(layout);
367
        this.setLayout(layout);
352
        layout.setHorizontalGroup(
368
        layout.setHorizontalGroup(
Lines 355-385 Link Here
355
                .addContainerGap()
371
                .addContainerGap()
356
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
372
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
357
                    .addGroup(layout.createSequentialGroup()
373
                    .addGroup(layout.createSequentialGroup()
358
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
374
                        .addComponent(inputWarningLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 174, Short.MAX_VALUE)
359
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 568, Short.MAX_VALUE)
375
                        .addGap(493, 493, 493))
376
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
377
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
360
                            .addGroup(layout.createSequentialGroup()
378
                            .addGroup(layout.createSequentialGroup()
379
                                .addComponent(sqlLimitLabel)
380
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
381
                                .addComponent(sqlLimitTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
382
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
383
                                .addComponent(sqlLimitButton)
384
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
385
                                .addComponent(matchingRowsLabel))
386
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 595, Short.MAX_VALUE)
387
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
361
                                .addComponent(jLabel1)
388
                                .addComponent(jLabel1)
362
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
389
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
363
                                .addComponent(connectionUrlComboBox, 0, 224, Short.MAX_VALUE)
390
                                .addComponent(connectionUrlComboBox, 0, 218, Short.MAX_VALUE)
364
                                .addGap(18, 18, 18)
391
                                .addGap(18, 18, 18)
365
                                .addComponent(jLabel2)
392
                                .addComponent(jLabel2)
366
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
393
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
367
                                .addComponent(searchTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)))
394
                                .addComponent(searchTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)))
368
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
395
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
369
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
396
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
370
                            .addComponent(insertSQLButton, javax.swing.GroupLayout.DEFAULT_SIZE, 87, Short.MAX_VALUE)
397
                            .addComponent(insertSQLButton, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)
371
                            .addComponent(deleteSQLButtton, javax.swing.GroupLayout.DEFAULT_SIZE, 87, Short.MAX_VALUE)
398
                            .addComponent(deleteSQLButton, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)
372
                            .addComponent(deleteAllSQLButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
399
                            .addComponent(deleteAllSQLButton, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE))
373
                        .addContainerGap())
400
                        .addContainerGap())))
374
                    .addGroup(layout.createSequentialGroup()
375
                        .addComponent(inputWarningLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 174, Short.MAX_VALUE)
376
                        .addGap(493, 493, 493))
377
                    .addGroup(layout.createSequentialGroup()
378
                        .addComponent(sqlLimitLabel)
379
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
380
                        .addComponent(sqlLimitTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
381
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
382
                        .addComponent(sqlLimitButton))))
383
        );
401
        );
384
        layout.setVerticalGroup(
402
        layout.setVerticalGroup(
385
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
403
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
Lines 397-409 Link Here
397
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 141, Short.MAX_VALUE)
415
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 141, Short.MAX_VALUE)
398
                        .addComponent(deleteAllSQLButton)
416
                        .addComponent(deleteAllSQLButton)
399
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
417
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
400
                        .addComponent(deleteSQLButtton))
418
                        .addComponent(deleteSQLButton))
401
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 228, Short.MAX_VALUE))
419
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 228, Short.MAX_VALUE))
402
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
420
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
403
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
421
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
404
                            .addComponent(sqlLimitTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
422
                            .addComponent(sqlLimitTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
405
                            .addComponent(sqlLimitButton)
423
                            .addComponent(sqlLimitButton)
406
                            .addComponent(sqlLimitLabel))
424
                    .addComponent(sqlLimitLabel)
425
                    .addComponent(matchingRowsLabel))
407
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
426
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
408
                .addComponent(inputWarningLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
427
                .addComponent(inputWarningLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
409
                .addContainerGap())
428
                .addContainerGap())
Lines 436-444 Link Here
436
    verifySQLLimit();
455
    verifySQLLimit();
437
}//GEN-LAST:event_sqlLimitButtonActionPerformed
456
}//GEN-LAST:event_sqlLimitButtonActionPerformed
438
457
439
    private void deleteSQLButttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteSQLButttonActionPerformed
458
    private void deleteSQLButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteSQLButtonActionPerformed
440
        deleteSQL();
459
        deleteSQL();
441
    }//GEN-LAST:event_deleteSQLButttonActionPerformed
460
    }//GEN-LAST:event_deleteSQLButtonActionPerformed
442
461
443
    private void deleteAllSQLButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteAllSQLButtonActionPerformed
462
    private void deleteAllSQLButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteAllSQLButtonActionPerformed
444
        deleteAllSQL();
463
        deleteAllSQL();
Lines 561-572 Link Here
561
    // Variables declaration - do not modify//GEN-BEGIN:variables
580
    // Variables declaration - do not modify//GEN-BEGIN:variables
562
    private javax.swing.JComboBox connectionUrlComboBox;
581
    private javax.swing.JComboBox connectionUrlComboBox;
563
    private javax.swing.JButton deleteAllSQLButton;
582
    private javax.swing.JButton deleteAllSQLButton;
564
    private javax.swing.JButton deleteSQLButtton;
583
    private javax.swing.JButton deleteSQLButton;
565
    private javax.swing.JLabel inputWarningLabel;
584
    private javax.swing.JLabel inputWarningLabel;
566
    private javax.swing.JButton insertSQLButton;
585
    private javax.swing.JButton insertSQLButton;
567
    private javax.swing.JLabel jLabel1;
586
    private javax.swing.JLabel jLabel1;
568
    private javax.swing.JLabel jLabel2;
587
    private javax.swing.JLabel jLabel2;
569
    private javax.swing.JScrollPane jScrollPane1;
588
    private javax.swing.JScrollPane jScrollPane1;
589
    private javax.swing.JLabel matchingRowsLabel;
570
    private javax.swing.JTextField searchTextField;
590
    private javax.swing.JTextField searchTextField;
571
    private javax.swing.JTable sqlHistoryTable;
591
    private javax.swing.JTable sqlHistoryTable;
572
    private javax.swing.JButton sqlLimitButton;
592
    private javax.swing.JButton sqlLimitButton;

Return to bug 144504