This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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!