Hi,
I created a java Application with serveral jframe and jdialog.
When running app and language changes to Persian and then opening a jframe or jdialog, app's language changing to English.
How to fixed Language in all app?
Printable View
Hi,
I created a java Application with serveral jframe and jdialog.
When running app and language changes to Persian and then opening a jframe or jdialog, app's language changing to English.
How to fixed Language in all app?
Are you asking how to implement different languages in your program?
You'll have to keep track of what should be displayed in each component for each language, then switch what's being displayed when the language changes. There's no magic "change language" function.
Look at the ResourceBundle class.
It sounds like you're trying to do internationalization, which is often abbreviated i18n. Searching for those terms might find you some helpful info.
One way of doing it is to replace every literal string in your program with a call to get() on a Map<String, String>. When the program starts, it fills that Map with Strings appropriate to the user's locale. ("Locale" is another key word you might want to search for.)