문제

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?

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top