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

Java Swing JOptionPane Question ?  RSS feed

 
lakmal padmakumara
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey I have written a Code to get an user input through JOptionPane.showInputDialog() And It has two buttons called "ok" and " cancel".
How Can i replace those strings "ok" and "cancel" with my own names??How to do that?

And another thing is How to pop up a confirmation dialog box when i press close button on JOptionPane.showInputDialog box.Tell me a method .Thank You!

 
Miklos Szeles
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can find the answers for all of your questions in the Java tutorial.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!