From 70af2ed3587c2cead200aba63d201501da67af3c Mon Sep 17 00:00:00 2001 From: Holger Zickner Date: Thu, 12 May 2005 12:52:50 +0000 Subject: use US locale (labels in filechooser, number format) --- src/jake2/Jake2.java | 5 ++++- src/jake2/qcommon/Q2DataDialog.java | 7 ++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/jake2/Jake2.java b/src/jake2/Jake2.java index a40bd84..2155a19 100644 --- a/src/jake2/Jake2.java +++ b/src/jake2/Jake2.java @@ -2,7 +2,7 @@ * Jake2.java * Copyright (C) 2003 * - * $Id: Jake2.java,v 1.6 2004-09-25 15:17:44 hzi Exp $ + * $Id: Jake2.java,v 1.7 2005-05-12 12:52:50 hzi Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -29,6 +29,8 @@ import jake2.client.SCR; import jake2.qcommon.*; import jake2.sys.Sys; +import java.util.Locale; + /** * Jake2 is the main class of Quake2 for Java. */ @@ -45,6 +47,7 @@ public final class Jake2 { */ public static void main(String[] args) { + Locale.setDefault(Locale.US); Q2Dialog.setVisible(true); // in C the first arg is the filename diff --git a/src/jake2/qcommon/Q2DataDialog.java b/src/jake2/qcommon/Q2DataDialog.java index b8a24d2..16c1bf5 100644 --- a/src/jake2/qcommon/Q2DataDialog.java +++ b/src/jake2/qcommon/Q2DataDialog.java @@ -2,7 +2,7 @@ * Q2DataDialog.java * Copyright (C) 2003 * - * $Id: Q2DataDialog.java,v 1.12 2004-09-26 21:12:40 hzi Exp $ + * $Id: Q2DataDialog.java,v 1.13 2005-05-12 12:52:50 hzi Exp $ */ package jake2.qcommon; @@ -14,8 +14,7 @@ import java.awt.event.*; import java.io.*; import java.net.URL; import java.net.URLConnection; -import java.util.Enumeration; -import java.util.Vector; +import java.util.*; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; @@ -41,6 +40,8 @@ public class Q2DataDialog extends javax.swing.JDialog { } private void initComponents() {//GEN-BEGIN:initComponents + JComponent.setDefaultLocale(Locale.US); + java.awt.GridBagConstraints gridBagConstraints; choosePanel = new javax.swing.JPanel(); -- cgit v1.2.3