java swing form hang -


i developing application in java swing(desktop) communicate device through serial port.the problem hangs when communication lost device.and unable close form until don't end .exe in window task mannager.what should solution can close forms.

i'm guessing communicating other application using event dispatch thread. if other application hangs gui becomes unresponsive.

i suggest use separate thread communicate other device.

read section swing tutorial on concurrency more information.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -