2

I developed an application in JavaFX that supports the English and Arabic languages.

Support for both languages works fine in NetBeans, however, when I run the jar file, the Arabic language does not work (see the screenshot).

How can I fix this problem?

screenshot


Note, the menu bar portion does work fine in the Arabic language because I have this line of code that uses the system menu bar.

final String os = System.getProperty("os.name");

if (os != null && os.startsWith("Mac")) {
    myMenuBar.useSystemMenuBarProperty().set(true);
}
jewelsea
  • 150,031
  • 14
  • 366
  • 406
karokh aziz
  • 39
  • 1
  • 5
  • 3
    [mcve] please .. – kleopatra Sep 21 '21 at 16:05
  • 1
    thanks guys i fixed my problem by adding arabic font to my application – karokh aziz Sep 21 '21 at 20:05
  • 3
    Great, you can add that as a [self-answer if you wish](https://stackoverflow.com/help/self-answer). – jewelsea Sep 21 '21 at 20:07
  • 2
    I edited Uluk's answer to the [reference question for the JavaFX internationalization topic](https://stackoverflow.com/questions/10143392/javafx-2-and-internationalization) to include advice on ensuring appropriate fonts are available for an internationalized application. – jewelsea Sep 21 '21 at 20:15

0 Answers0