catch (SQLException close_error) { message("Exception caught! Could not close record!"); }
record_saved = true;
update_prod_line(true);
}
else {
message("The record number you entered was not valid. Try again.");
req_num.setEditable(true);
highlight(req_num);
}
}
// get_empl_info()
final void get_empl_info() {
String empl_SQL = "SELECT emp_fname, emp_lname, employee.dept_id, dept_name FROM employee, department WHERE department.dept_id = employee.dept_id AND emp_id = '"+empl_num.getText().trim()+"'";
if ((evtx > 0 && evtx < 125) && (evty > 75 && evty <95)) status_bar.setText("Switch to Add/Edit Mode to modify record(s).");
else if ((evtx > 127 && evtx < 182) && (evty > 75 && evty < 95)) status_bar.setText("Choose record to delete.");
else if ((evtx > 184 && evtx < 214) && (evty > 75 && evty < 95)) status_bar.setText("Go to the first record in this set.");
else if ((evtx > 216 && evtx < 246) && (evty > 75 && evty < 95)) status_bar.setText("Go to the next record in this set.");
else if ((evtx > 248 && evtx < 344) && (evty > 75 && evty < 95)) status_bar.setText("Search the database given the information that you have entered.");
else status_bar.setText(current_status_bar);
}
if ((evtx > 346 && evtx < 442) && (evty > 75 && evty < 95) && (mode != 2)) status_bar.setText("Clear current record entry.");