Skip to content

Commit

Permalink
Force javafx to run thread (#4604)
Browse files Browse the repository at this point in the history
  • Loading branch information
chel-seyy authored and tobiasdiez committed Jan 23, 2019
1 parent c6f68e3 commit 232c345
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/jabref/gui/EntryTypeView.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.Collection;
import java.util.List;

import javafx.application.Platform;
import javafx.event.Event;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
Expand Down Expand Up @@ -143,6 +144,7 @@ public void initialize() {
}
}

Platform.runLater(() -> idTextField.requestFocus());
}

public EntryType getChoice() {
Expand Down

0 comments on commit 232c345

Please sign in to comment.