int result = JOptionPane.showConfirmDialog(ExaminationPanel.this.getRootPane(), listFieldsPanel,
"Select period and room", JOptionPane.OK_CANCEL_OPTION);
if (result == JOptionPane.OK_OPTION) {
Period toPeriod = (Period) periodListField.getSelectedItem();
solutionBusiness.doChangeMove(exam, "period", toPeriod);
Room toRoom = (Room) roomListField.getSelectedItem();
solutionBusiness.doChangeMove(exam, "room", toRoom);
solverAndPersistenceFrame.resetScreen();
}
}