• 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: 1510
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic