• Post Reply Bookmark Topic Watch Topic
  • New Topic

"Java Applet Window" message

 
Terry Wang
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm not good at gui and i just found a small unwanted problem with my gui. i used a couple JOptionPane/JDialogs to display success/error messages.
when the user does everything right, the message boxes show up correctly. but when some exceptions happen (like i shut down server), then the message boxes always have a "Java Applet Window" status-bar-like line at the bottom of them(not wanted), and then the message boxes become resizable(not wanted). even after i reset server correctly or use local db, the status bar is still there unless i restart everything(registry/server/client).
any ideas? thanks a lot!
 
Bal Sharma
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello:
I had also this problem. Use try catch block. If exception does not occur then only use your JOption OR JDialogs, it will solve your problem.
Hope it helps. -Bal
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!