From: hansonr Date: Wed, 20 Jun 2018 12:01:23 +0000 (+0100) Subject: JAL-3032 FileLoader fixes for SwingJS X-Git-Tag: Release_2_11_4_0~45^2~18^2~681 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ba0c5b8e80e5afcf1da21eeea788b0cf96a9c6bc;p=jalview.git 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) --- 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; }