Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
Locale.setDefault(Locale.GERMANY);
GregorianCalendar calendar = new GregorianCalendar();
DateFormat df = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM);
System.out.println( df.format(calendar.getTime()));
Locale.setDefault(Locale.GERMANY);
Ich hoffe, dass Linux ansonsten gut unterstützt wird. Das ist ja auch anscheinend das Problem beim DateTime-Widget von SWT: Unter Windows und OS X werden die Spracheinstellungen des Systems richtig ausgelesen, und das Widget wird richtig angezeigt. Unter GTK+ (Xubuntu-Linux) klappt es nicht so richtig. Möglicherweise weil einfach keine lokalisierten Komponenten für eine Zeitanzeige unter Xubuntu zur Verfügung stehen?IMPORTANT: Due to certain listeners not firing, this widget does not work correctly under GTK. It does work fine on Windows and OS X.