@Override
protected void processFirstItemAction(ActionEvent e) throws Exception {
DBObjectForm form = new DBObjectForm();
String tableName = null;
JComponent focusedComponent = null;
if (cbNat.hasFocus()) {
tableName = "NAT";
focusedComponent = cbNat;
} else if (cbGovIdIssuePlace.hasFocus()) {
tableName = "CITIES";
focusedComponent = cbGovIdIssuePlace;
} else if (cbProffession.hasFocus()) {
tableName = "PROFESSIONS";
focusedComponent = cbProffession;
} else if (cbType.hasFocus()) {
tableName = "EMPLOYEE_TYPES";
focusedComponent = cbType;
} else if (cbRiligion.hasFocus()) {
tableName = "RELIGIONS";
focusedComponent = cbRiligion;
} else if (cbSponsor.hasFocus()) {
SponsorForm sponsorForm = new SponsorForm();
ViewUtil.showDialog(sponsorForm, true);
fillCBSponsor();
return;
}
form.setTableName(tableName);
ViewUtil.showDialog(form, true);
if (cbNat.equals(focusedComponent))
fillCBNat();
else if (cbGovIdIssuePlace.equals(focusedComponent))
fillCBGovIdIssuePlace();