private void jButtonAddActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jButtonAddActionPerformed MeterIntervalDialog cc = new MeterIntervalDialog(this, true); cc.setVisible(true); if (cc.getDialogResult() == JOptionPane.OK_OPTION) { addRowValues(cc.getMeterInterval()); } } // GEN-LAST:event_jButtonAddActionPerformed
private void jButtonModifyActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_jButtonModifyActionPerformed int index = jTable1.getSelectedRow(); if (index >= 0) { MeterInterval c = (MeterInterval) jTable1.getValueAt(jTable1.getSelectedRow(), 0); MeterIntervalDialog cc = new MeterIntervalDialog(this, true); cc.setMeterInterval(c); if (newInfo != null) { cc.setFocusedExpression(newInfo); } cc.setVisible(true); if (cc.getDialogResult() == JOptionPane.OK_OPTION) { setRowValues(c, index); } } } // GEN-LAST:event_jButtonModifyActionPerformed