I would prefer to do a thread for this. Regards, Jay
On Sat, Jan 8, 2011 at 5:30 AM, fabian david camargo amaya < fdcam...@gmail.com> 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 > javaprogrammingwithpassion@googlegroups.com > To unsubscribe from this group, send email to > javaprogrammingwithpassion+unsubscr...@googlegroups.com<javaprogrammingwithpassion%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/javaprogrammingwithpassion?hl=en -- To post to this group, send email to javaprogrammingwithpassion@googlegroups.com To unsubscribe from this group, send email to javaprogrammingwithpassion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en