Share data between threads and JOptionPane needs thread to run!
<pre><code>            public void aMethod(){
              new Thread(new Runnable() {

                public void run() {
                   int decide = JOptionPane.showConfirmDialog(null, confirmName?, JOptionPane.YES_NO_OPTION);
                }
            }).start();
            System.out.println("Number of decison " + decide); //Can't find symbol "decide"
               }
</code></pre>

<p><hr/>
JOptionPane can't run without being put to a thread(I don't know why). Yet when put it to a thread, I can't get the varible decide from that.
P/s: This is a method in callbackImplement Java RMI.
Thank you. happy new year :P</p>
