Note that there are some explanatory texts on larger screens.

plurals
  1. POControl doesn't comeback to Swinkworker when I call another class from it
    text
    copied!<p>I have a class that extends SwingWorker</p> <pre><code>public class PowerVCImageDeployer extends SwingWorker&lt;Boolean,String&gt;{ protected Boolean doInBackground() throws Exception { PowerVCImageDeployer imageDeployer = new PowerVCImageDeployer(); imageDeployer.makeAConnection(); imageDeployer.makeNameIdMap(); // more code return null; } public HashMap&lt;String,String&gt; makeNameIdMap(){ System.out.println("I am in make NameIdMap"); VolumeNameGetter idToName = new VolumeNameGetter(); ArrayList&lt;String&gt; list = (ArrayList&lt;String&gt;)volIDMap.keySet(); idNameMap = idToName.volNameGetter(list); </code></pre> <p>This is the trouble point. The control goes class idToName and it looks as if it doesn't come back. I have fully tested the class VolumeNameGetter using main method. The class is working good. There is no problem with it. So that looks as if once the control goes away from the SwingWorker it is unable to get it back ?? I have posted the output in the last line</p> <pre><code> System.out.println("The name Id Map is "+idNameMap); System.out.println("Checking if the control comes back here"); return idNameMap; } </code></pre> <p>}</p> <p>The output of the code is </p> <pre><code>I am in make NameIdMap </code></pre> <p>This is troubling me a lot. Any help would be highly appreciated. Thanx in advance.</p> <p>Debugger Output</p> <p><img src="https://i.stack.imgur.com/9ub5B.jpg" alt="enter image description here"></p> <p>and line number 127 is return voulmeMap;</p> <p><img src="https://i.stack.imgur.com/3LHy5.jpg" alt="enter image description here"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload