mirror of
https://gitlab.com/kauron/jstudy
synced 2024-12-22 16:33:33 +01:00
TableController: swap will now refresh the items
This commit is contained in:
parent
1f3433e19e
commit
5d539485cf
1 changed files with 2 additions and 2 deletions
|
@ -130,8 +130,8 @@ public class TableController implements Initializable {
|
||||||
if (table.getSelectionModel().getSelectedIndices().size() > 0) saved.set(false);
|
if (table.getSelectionModel().getSelectedIndices().size() > 0) saved.set(false);
|
||||||
for (TestItem item : table.getSelectionModel().getSelectedItems()) {
|
for (TestItem item : table.getSelectionModel().getSelectedItems()) {
|
||||||
String question = item.getQuestion();
|
String question = item.getQuestion();
|
||||||
item.questionProperty().set(item.getAnswer());
|
item.questionProperty().setValue(item.getAnswer());
|
||||||
item.answerProperty().set(question);
|
item.answerProperty().setValue(question);
|
||||||
}
|
}
|
||||||
table.requestFocus();
|
table.requestFocus();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue