Question

I'm using a JXTable that contains a search functionality when I press CTRL+F.

If I have my locale defined to English or French, the default text of this search window is automatically translated to the active locale. If however I change it to any of the following languages, Arabic, Russian or Greek, the search window component's text, defaults to English.

Is there a way to define my own translation for this component or any other SwingX component, by putting my own properties file in the classpath?

Was it helpful?

Solution

Open the swingx jar file, look for the properties file holding the values you want to translate, and create your own file with the appropriate locale extension. For example,

org/jdesktop/swingx/plaf/basic/resources/swingx_ru.properties
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top