Changeset 32673
- Timestamp:
- 2018-12-12T19:38:38+13:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/GathererProg.java
r14974 r32673 31 31 import javax.swing.*; 32 32 import org.greenstone.gatherer.util.Utility; 33 34 33 35 34 /** … … 74 73 // We have a local GLI 75 74 Gatherer.setGLIDirectoryPath(System.getProperty("user.dir") + File.separator); 75 76 76 77 // Create an instance of the Gatherer class, which will parse the args and prepare the rest of the GLI 78 Gatherer gatherer = new Gatherer(args); 79 80 // Display the GUI immediately 81 gatherer.openGUI(); 77 // TESTING circumventing the old GUI event dispatch thread exceptions in GLI. Follows 78 // https://docs.oracle.com/javase/6/docs/api/javax/swing/package-summary.html#threading 79 // referred from Event Dispatch Thread page at https://joel-costigliola.github.io/assertj/assertj-swing-edt.html 80 81 // Schedule a job for the event-dispatching thread: 82 // creating and showing this application's GUI. 83 SwingUtilities.invokeLater(new Runnable() { 84 public void run() { 85 // These lines used to be done immediate after setGLIDirectoryPath() call above 86 // but are now inside an invokeLater(). 87 88 // Create an instance of the Gatherer class, which will parse the args and prepare the rest of the GLI 89 Gatherer gatherer = new Gatherer(args); 90 91 // Display the GUI immediately 92 gatherer.openGUI(); 93 } 94 }); 82 95 } 83 96 }
Note:
See TracChangeset
for help on using the changeset viewer.