From ba0c5b8e80e5afcf1da21eeea788b0cf96a9c6bc Mon Sep 17 00:00:00 2001 From: hansonr Date: Wed, 20 Jun 2018 13:01:23 +0100 Subject: [PATCH] JAL-3032 FileLoader fixes for SwingJS SwingJS-site.zip for java.util.concurrent.locks.* swingjs/j2s/java/awt/KeyboardFocusManager.js was not found. (in JInternalFrame) --- src/jalview/io/FileLoader.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/jalview/io/FileLoader.java b/src/jalview/io/FileLoader.java index f26d6da..60db4c8 100755 --- a/src/jalview/io/FileLoader.java +++ b/src/jalview/io/FileLoader.java @@ -183,8 +183,16 @@ public class FileLoader implements Runnable */ protected AlignFrame _LoadFileWaitTillLoaded() { - Thread loader = new Thread(this); - loader.start(); + + /** + * @j2sNative + * + * this.run(); + * + */ + { + Thread loader = new Thread(this); + loader.start(); while (loader.isAlive()) { @@ -195,7 +203,7 @@ public class FileLoader implements Runnable { } } - + } return alignFrame; } -- 1.7.10.2