• Post Reply Bookmark Topic Watch Topic
  • New Topic

dialog box

 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I want to know that if i want to display dialog box with some error message, how can display it in java?
Plz explain me by an example?
Thanks in advance,
Angela
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure about this question. If you want to show a dialog box in response to some action the user took, check the API for JDialog.
Bosun
 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bosun,
But i don't want to use swing classes. Plz let me know if you suggestion with AWT
Thnaks again,
angela
Originally posted by Bosun Bello:
Not sure about this question. If you want to show a dialog box in response to some action the user took, check the API for JDialog.
Bosun

 
Stephanie Grasson
Ranch Hand
Posts: 347
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Angela!
Will this work for you?

This code displays a simple application with one button. When the user clicks the button, the application displays a dialog with the message and an OK button. Pretty basic. Hope it helps.
Stephanie
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!