pack();
}// </editor-fold>//GEN-END:initComponents
private void btOkActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btOkActionPerformed
DirectoryServiceClassItem servClass = (DirectoryServiceClassItem) cbClass.getSelectedItem();
if (servClass != null && servClass.getID() != 0
&& !tfGroupCode.getText().isEmpty() && !tfName.getText().isEmpty()) {
ServiceDetails d = new ServiceDetails();
d.id = 0;
d.title = tfName.getText();
d.code = tfGroupCode.getText();
d.serviceClass = servClass.getID();
d.defaultDuration = 0;
d.description = "";
d.serviceGroup = group.getID();
service = new DirectoryServiceItem(d);
setDlgResult(ModalDialog.DLG_OK);