Skip to content

Commit 50c9491

Browse files
committed
New theme / new language now focus the name input field on display
1 parent 9e8c4f8 commit 50c9491

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/me/coley/j2h/Java2Html.java

+2
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ private void updateLanguageMenu() {
311311
}
312312
return null;
313313
});
314+
Platform.runLater(() -> txtName.requestFocus());
314315
Optional<String> result = dialog.showAndWait();
315316
if(result.isPresent()) {
316317
Language language = new Language(result.get());
@@ -378,6 +379,7 @@ private void updateThemeMenu() {
378379
}
379380
return null;
380381
});
382+
Platform.runLater(() -> txtName.requestFocus());
381383
Optional<String> result = dialog.showAndWait();
382384
if(result.isPresent()) {
383385
Theme theme = new Theme();

0 commit comments

Comments
 (0)