From 20cd10acf0b9aaf77235778bff5f3b51b7b706ea Mon Sep 17 00:00:00 2001 From: Tiago Bagni Date: Sat, 4 May 2024 16:58:34 -0500 Subject: [PATCH] Initialize the UI on the AWT thread to avoid synchronization issues --- src/main/java/com/tibagni/logviewer/LogViewerApplication.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/tibagni/logviewer/LogViewerApplication.java b/src/main/java/com/tibagni/logviewer/LogViewerApplication.java index 0d1b66e..48ece50 100644 --- a/src/main/java/com/tibagni/logviewer/LogViewerApplication.java +++ b/src/main/java/com/tibagni/logviewer/LogViewerApplication.java @@ -50,7 +50,7 @@ public static void main(String[] args) { .collect(Collectors.toSet()); LogViewerApplication application = new LogViewerApplication(); - application.start(initialLogFiles); + SwingUtilities.invokeLater(() -> application.start(initialLogFiles)); } private static void configureUncaughtExceptionHandler() {