// Load languages public void loadJobFunction(javax.swing.JComboBox... cboJobFunctions) { logManager.logInfo( "Entering 'loadJobFunction(javax.swing.JComboBox... cboJobFunctions)' method"); String jobFunction = ""; try { sqlString = queryBuilder.sqlSelectJobFunction(); resultset = executeQuery.executeSelect(sqlString); if (resultset.next()) { while (!resultset.isAfterLast()) { jobFunction = resultset.getString("job"); // Insert organisations into combo box for (JComboBox cboJobFunction : cboJobFunctions) { cboJobFunction.addItem(jobFunction); } resultset.next(); } } } catch (Exception exception) { logManager.logError( "Exception was thrown and caught in 'loadJobFunction(javax.swing.JComboBox... cboJobFunctions)' method"); } logManager.logInfo( "Exiting 'loadJobFunction(javax.swing.JComboBox... cboJobFunctions)' method"); }