Jannis Alexakis
Jannis Alexakis

Reputation: 1319

Change locale in Netbeans platform application

I need to change the locale of a netbeans platform app (7.1) to "de". Does anyone know where this is set? I tried the line netbeans_default_options="--locale de" in project.properties but that wasn´t it.

Upvotes: 1

Views: 4749

Answers (1)

gefrag
gefrag

Reputation: 352

There are two ways to do it.

1) Passing the locale to java arguments:

-Duser.language=de -Duser.region=DE

2) Call Locale.setDefault()

locale = new Locale("de", "DE");

Upvotes: 3

Related Questions