1
0
Fork 0
mirror of https://gitlab.com/kauron/jstudy synced 2024-06-26 13:33:02 +02:00

TableController: swap will now refresh the items

This commit is contained in:
Carlos Galindo 2017-06-19 14:28:27 +02:00
parent 1f3433e19e
commit 5d539485cf
Signed by: kauron
GPG key ID: 83E68706DEE119A3

View file

@ -130,8 +130,8 @@ public class TableController implements Initializable {
if (table.getSelectionModel().getSelectedIndices().size() > 0) saved.set(false);
for (TestItem item : table.getSelectionModel().getSelectedItems()) {
String question = item.getQuestion();
item.questionProperty().set(item.getAnswer());
item.answerProperty().set(question);
item.questionProperty().setValue(item.getAnswer());
item.answerProperty().setValue(question);
}
table.requestFocus();
}