@Override public void setCell() { Cell cell = batchState.getCurrentCell(); recordList.setSelectedIndex(cell.getRecordNum()); textBoxes.get(cell.getFieldNum() - 1).text.requestFocus(); for (int i = 0; i < batchState.getFields().size(); ++i) { String temp = indexedData[i][cell.getRecordNum()]; textBoxes.get(i).text.setText(temp); boolean[][] check = batchState.getMisspelled(); if (check[i][cell.getRecordNum()]) { textBoxes.get(i).text.setBackground(Color.RED); } else { textBoxes.get(i).text.setBackground(Color.WHITE); } } }