\r
String DEFAULT_REGISTRY = "http://das.sanger.ac.uk/registry/das1/sources/";\r
\r
+ boolean loadingDasSources = false;\r
+\r
\r
public DasSourceBrowser()\r
{\r
}\r
});\r
\r
- if(dasSources==null)\r
+ if(dasSources!=null)\r
{\r
- Thread worker = new Thread(this);\r
- worker.start();\r
- }\r
- else\r
- {\r
init();\r
- }\r
+ }\r
+ }\r
+\r
+ public void paintComponent(java.awt.Graphics g)\r
+ {\r
+ if (dasSources == null && !loadingDasSources)\r
+ {\r
+ Thread worker = new Thread(this);\r
+ worker.start();\r
+ }\r
}\r
\r
void init()\r
\r
public void run()\r
{\r
+ loadingDasSources = true;\r
+\r
addLocal.setVisible(false);\r
refresh.setVisible(false);\r
progressBar.setVisible(true);\r
\r
init();\r
\r
+ loadingDasSources = false;\r
+\r
}\r
\r
public Vector getSelectedSources()\r