This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JOptionPane.showInputDialog

 
tiger_niuniu
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i use this to popup a input dialog,and the parameters are (parentComponent,title,message,messagetype),thereinto,the messagetype parameter is JOptionPane.Question_messageType,but in the displayed dialog,the ok button and cancel button are displayed in chinese,how can i set the language of the dialog.
 
Manuel Moons
Ranch Hand
Posts: 229
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The language on the buttons is probably set using the Locale.

Locale javadoc

So set the default before any GUI Elements are created. (In the main method)
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic