I would prefer to do a thread for this.

Regards,
Jay

On Sat, Jan 8, 2011 at 5:30 AM, fabian david camargo amaya <
[email protected]> wrote:

> Hi, i have to do a GUI that read data from a sensor using the serial port
> and update the gui continuosly (possibly graph data).
> I will start the process with a button and shall stop the process with the
> same button y have the idea below:
>
>  while(!stop)
>       Read the data
>       Refresh the gui elements (for example a progress bar)
> end while
>
> but the problem is that i have to listen the event for an Stop button, and
> i get blocked doing the read and the refresh
>
> Any idea????????
> Thanks for helping
>
>  --
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]<javaprogrammingwithpassion%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/javaprogrammingwithpassion?hl=en

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en

Reply via email to