How can I internationalize the Yes/No/Cancel buttons in a JOptionPane?

Location: jguru.com/faq/view.jsp?EID=86180 Created: Jun 24, 2000 Modified: 2000-06-24 14:53:38.262 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) Question originally posed by Jean-Yves BRUD (http://www.jguru.com/guru/viewbio.jsp?EID=8908 Depending upon which version of Java you are using, there are different answers. With 1.3, the labels are in properties files. You can add a property file with the labels for a JFileChooser, JColorChooser, and/or JOptionPane.

All of these are set in the files basic. Properties, or their localized version. The standard JDK from Sun includes ones for Japanese basic_ja.

Properties and Chinese basic_zh.properties. You would need to create one named appropriately, and located in a directory javax/swing/plaf/basic/resources in your CLASSPATH. With 1.2/1.1 (and also working in 1.3), you can just tell the UIManager to use different labels before creating the component.

More.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions