• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

JOptionPane.showMessageDialog  RSS feed

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am reading some response from a device which is on network,and
udp server is running on that, i am sending some command to it,
and reading response from it, and on behalf of that response,
i try to pop message through swing componet i.e,

JOptionPane.showMessageDialog(null,"some message");

,but the prob. is that on pop of this message box,GUI gets hung.

if anybody has solution,please convey.

sachindra
 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your code is as you wrote, there is no issue with that call. I might suggest looking at your threading model. Do you have a working thread or a thread pool that is doing asynchronous work that generates this dialog? If so, that may be where your problem lies.

What exactly do you mean "Hung up" GUI?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!