mirror of
https://gitlab.com/kauron/jstudy
synced 2024-12-22 08:23: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);
|
||||
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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue