Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JDialogBox  RSS feed

 
sae0203
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently, i'm doing a project which require me to pop up a warning question when the button is clicked. but as i read through the information found on the java.sun website... i find them confusing.. n i admit my programming is bad. so... is there any way i can call upon a dialog box when a button'Delete' is being clicked.
thankx
 
Sudharsan Govindarajan
Ranch Hand
Posts: 319
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the javax.swing.JOptionPane class for this. It has a number of static methods to display warning, message and confirmation dialogs. Have a look at the 'JOptionPane.showonfirmDialog' method.It may be useful for you.
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ambrosia_0203
Welcome to the JavaRanch! Please adjust your display name to meet
the JavaRanch Naming Policy. You can change it here.
Thanks!
and welcome to the JavaRanch!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!