How to set the first day of the week in a Java application calendar

We use a Java application that has a date selection field when you click there to open a small calendar The first day of the week is Sunday But I hope it's Monday I tried to change it from the date setting from the windows control panel For example, I set the first day of my windows calendar to Thursday But in the calendar of Java applications, the first day of the week is still Sunday Can I change the first day of the Java application from windows, or just from the code of the Java application?

to greet

Solution

Which framework does your Java application use? What type of component is the date selection field?

In the java calendar, by default, the first day of the week is determined by the system's "regional settings"

Therefore, if you cannot change the source code of the application:

>You may want to change the locale of the operating system (windows in your case) > or you can use various command-line parameters for Java when starting the JVM, such as - duser Country or - duser region. Look here

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>