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
private Session GetSession() { Session session = new Session(); session.name = nameField.getText(); session.type = typeCombo.getSelectedIndex(); session.client = UtilTable.GetTableObject(clientTable); return session; }
private void SetSession(Session camp) { nameField.setText(camp.name); typeCombo.setSelectedIndex(camp.type); UtilTable.SetTableObject(clientTable, camp.client); }