Skip to content
Snippets Groups Projects
Commit 807f6a9f authored by apvrille's avatar apvrille
Browse files

Update on loading from remote models: handling comodifications error on list...

Update on loading from remote models: handling comodifications error on list when moving the mouse over the main window during model loading
parent c73767d6
No related branches found
No related tags found
No related merge requests found
...@@ -356,7 +356,16 @@ public class JDialogLoadingNetworkModel extends javax.swing.JFrame implements Ac ...@@ -356,7 +356,16 @@ public class JDialogLoadingNetworkModel extends javax.swing.JFrame implements Ac
public void loadDone() { public void loadDone() {
jta.append("Model transfered, opening it in TTool\n"); jta.append("Model transfered, opening it in TTool\n");
this.dispose(); this.dispose();
mgui.openProjectFromFile(new File(filePath)); SwingUtilities.invokeLater(new Runnable() {
public void run() {
mgui.openProjectFromFile(new File(filePath));
// Here, we can safely update the GUI
// because we'll be called from the
// event dispatch thread
//statusLabel.setText("Query: " + queryNo);
}
});
//mgui.openProjectFromFile(new File(filePath));
} }
public void loadFailed() { public void loadFailed() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment