* an error dialog is shown, and processing returns, the button
* becoming re-enabled.
*/
-public class MarketUploader implements TopLevelWindowListener, GUIInitializedListener {
+public class MarketUploader implements Runnable, TopLevelWindowListener, GUIInitializedListener {
private JFrame frame = null;
private Window window = null;
private JButton findMarket = null;
uploadToPCTB=prefs.getBoolean("uploadToPCTB", true);
showArbitrage=prefs.getBoolean("showArbitrage", true);
+ if (dtxt!=null) dtxt.println("main on dispatch thread: "+EventQueue.isDispatchThread());
+ EventQueue.invokeLater(this);
+ }
+
+ public void run() {
+ if (dtxt!=null) dtxt.println("MarketUploader run()...");
EventQueueMonitor.addTopLevelWindowListener(this);
if (EventQueueMonitor.isGUIInitialized()) {
createGUI();