executing code too fast..need to slow down but how?
<p>from this code below </p>

<pre><code>  if(!validate_containsNum &amp;&amp; !validate_isNumber &amp;&amp; !validate_isBlankField){
                a.sendMsgToSlave("DATA:TAKE:PEOPLEs:"+pName_sub);
                appendToGlobalDataLog("SEND : DATA:TAKE:PEOPLEs:"+pID+":"+p_sub);
                String pID = pID_Manage.getText();  
                a.addtoArrayList("DATA:TAKE:PEOPLEs:"+pID+":"+pName_sub);
                at.sendToServer("DATA:TAKE:PEOPLEs:"+pID+":"+pName_sub);



        }
</code></pre>

<p>from the code above i am having a problem where this line </p>

<pre><code>      a.sendMsgToSlave("DATA:TAKE:PEOPLEs:"+pName_sub);
</code></pre>

<p>is actually calling my client to  fetch data from peoples TABLE in order to get pID in return which will be return to a JTEXTFIELD where the next line should be executed</p>

<pre><code>     String pID = pID_Manage.getText();  
</code></pre>

<p>but then as for the next line job is to add certain String into an arraylist which has the combination of pID and pName_Sub but then when executed it i found out my arraylist did not have the pID..so instead of the real result should be something like this</p>

<pre><code>     DATA:TAKE:PEOPLEs:1:ALBERT  (In my arraylist)
</code></pre>

<p>it shows like this</p>

<pre><code>     DATA:TAKE:PEOPLEs::ALBERT (the id is missing)
</code></pre>

<p>i need to resubmit again the 2nd time only can get the ID...it seems like the execution of the code is too fast and the storing of ID in return to the JTEXTFIELD is slow..any way to slow it down?</p>
