Пример #1
0
 private void minusButtonActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_minusButtonActionPerformed
   int cnt = clientTable.getRowCount() - 1;
   if (cnt >= 1 && cnt <= maxInjector) {
     UtilTable.SetTableCount(clientTable, cnt, new Object[] {"", "22", "", "", "NA"});
   }
 } // GEN-LAST:event_minusButtonActionPerformed
Пример #2
0
 private Session GetSession() {
   Session session = new Session();
   session.name = nameField.getText();
   session.type = typeCombo.getSelectedIndex();
   session.client = UtilTable.GetTableObject(clientTable);
   return session;
 }
Пример #3
0
 private void SetSession(Session camp) {
   nameField.setText(camp.name);
   typeCombo.setSelectedIndex(camp.type);
   UtilTable.SetTableObject(clientTable, camp.client);
 }