harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r470296 [3/3] - in /incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common: java/awt/ org/apache/harmony/awt/internal/nls/
Date Thu, 02 Nov 2006 09:45:24 GMT
Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/PageAttributes.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/PageAttributes.java?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/PageAttributes.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/PageAttributes.java Thu Nov  2 01:45:21 2006
@@ -22,6 +22,8 @@
 
 import java.util.Locale;
 
+import org.apache.harmony.awt.internal.nls.Messages;
+
 public final class PageAttributes implements Cloneable {
     private MediaType media;
     private ColorType color;
@@ -34,9 +36,9 @@
     public static final class ColorType {
         private final String name;
         public static final ColorType COLOR
-                                        = new ColorType(0, "COLOR");
+                                        = new ColorType(0, "COLOR"); //$NON-NLS-1$
         public static final ColorType MONOCHROME
-                                        = new ColorType(1, "MONOCHROME");
+                                        = new ColorType(1, "MONOCHROME"); //$NON-NLS-1$
 
         private ColorType(int i, String n){
             super();
@@ -44,121 +46,121 @@
         }
 
         private ColorType(){
-            this(1, "MONOCHROME");
+            this(1, "MONOCHROME"); //$NON-NLS-1$
         }
     }
 
     public static final class MediaType {
         private final String name;
 
-        public static final MediaType ISO_4A0 = new MediaType(71, "ISO_4A0");
-        public static final MediaType ISO_2A0 = new MediaType(70, "ISO_2A0");
+        public static final MediaType ISO_4A0 = new MediaType(71, "ISO_4A0"); //$NON-NLS-1$
+        public static final MediaType ISO_2A0 = new MediaType(70, "ISO_2A0"); //$NON-NLS-1$
 
-        public static final MediaType ISO_A0 = new MediaType(0, "ISO_A0");
-        public static final MediaType ISO_A1 = new MediaType(1, "ISO_A1");
-        public static final MediaType ISO_A2 = new MediaType(2, "ISO_A2");
-        public static final MediaType ISO_A3 = new MediaType(3, "ISO_A3");
-        public static final MediaType ISO_A4 = new MediaType(4, "ISO_A4");
-        public static final MediaType ISO_A5 = new MediaType(5, "ISO_A5");
-        public static final MediaType ISO_A6 = new MediaType(6, "ISO_A6");
-        public static final MediaType ISO_A7 = new MediaType(7, "ISO_A7");
-        public static final MediaType ISO_A8 = new MediaType(8, "ISO_A8");
-        public static final MediaType ISO_A9 = new MediaType(9, "ISO_A9");
-        public static final MediaType ISO_A10 = new MediaType(10, "ISO_A10");
-
-        public static final MediaType ISO_B0 = new MediaType(10, "ISO_B0");
-        public static final MediaType ISO_B1 = new MediaType(11, "ISO_B1");
-        public static final MediaType ISO_B2 = new MediaType(12, "ISO_B2");
-        public static final MediaType ISO_B3 = new MediaType(13, "ISO_B3");
-        public static final MediaType ISO_B4 = new MediaType(14, "ISO_B4");
-        public static final MediaType ISO_B5 = new MediaType(15, "ISO_B5");
-        public static final MediaType ISO_B6 = new MediaType(16, "ISO_B6");
-        public static final MediaType ISO_B7 = new MediaType(17, "ISO_B7");
-        public static final MediaType ISO_B8 = new MediaType(18, "ISO_B8");
-        public static final MediaType ISO_B9 = new MediaType(19, "ISO_B9");
-        public static final MediaType ISO_B10 = new MediaType(20, "ISO_B10");
-
-        public static final MediaType JIS_B0 = new MediaType(30, "JIS_B0");
-        public static final MediaType JIS_B1 = new MediaType(31, "JIS_B1");
-        public static final MediaType JIS_B2 = new MediaType(32, "JIS_B2");
-        public static final MediaType JIS_B3 = new MediaType(33, "JIS_B3");
-        public static final MediaType JIS_B4 = new MediaType(34, "JIS_B4");
-        public static final MediaType JIS_B5 = new MediaType(35, "JIS_B5");
-        public static final MediaType JIS_B6 = new MediaType(36, "JIS_B6");
-        public static final MediaType JIS_B7 = new MediaType(37, "JIS_B7");
-        public static final MediaType JIS_B8 = new MediaType(38, "JIS_B8");
-        public static final MediaType JIS_B9 = new MediaType(39, "JIS_B9");
-        public static final MediaType JIS_B10 = new MediaType(40, "JIS_B10");
-
-        public static final MediaType ISO_C0 = new MediaType(50, "ISO_C0");
-        public static final MediaType ISO_C1 = new MediaType(51, "ISO_C1");
-        public static final MediaType ISO_C2 = new MediaType(52, "ISO_C2");
-        public static final MediaType ISO_C3 = new MediaType(53, "ISO_C3");
-        public static final MediaType ISO_C4 = new MediaType(54, "ISO_C4");
-        public static final MediaType ISO_C5 = new MediaType(55, "ISO_C5");
-        public static final MediaType ISO_C6 = new MediaType(56, "ISO_C6");
-        public static final MediaType ISO_C7 = new MediaType(57, "ISO_C7");
-        public static final MediaType ISO_C8 = new MediaType(58, "ISO_C8");
-        public static final MediaType ISO_C9 = new MediaType(59, "ISO_C9");
-        public static final MediaType ISO_C10 = new MediaType(60, "ISO_C10");
+        public static final MediaType ISO_A0 = new MediaType(0, "ISO_A0"); //$NON-NLS-1$
+        public static final MediaType ISO_A1 = new MediaType(1, "ISO_A1"); //$NON-NLS-1$
+        public static final MediaType ISO_A2 = new MediaType(2, "ISO_A2"); //$NON-NLS-1$
+        public static final MediaType ISO_A3 = new MediaType(3, "ISO_A3"); //$NON-NLS-1$
+        public static final MediaType ISO_A4 = new MediaType(4, "ISO_A4"); //$NON-NLS-1$
+        public static final MediaType ISO_A5 = new MediaType(5, "ISO_A5"); //$NON-NLS-1$
+        public static final MediaType ISO_A6 = new MediaType(6, "ISO_A6"); //$NON-NLS-1$
+        public static final MediaType ISO_A7 = new MediaType(7, "ISO_A7"); //$NON-NLS-1$
+        public static final MediaType ISO_A8 = new MediaType(8, "ISO_A8"); //$NON-NLS-1$
+        public static final MediaType ISO_A9 = new MediaType(9, "ISO_A9"); //$NON-NLS-1$
+        public static final MediaType ISO_A10 = new MediaType(10, "ISO_A10"); //$NON-NLS-1$
+
+        public static final MediaType ISO_B0 = new MediaType(10, "ISO_B0"); //$NON-NLS-1$
+        public static final MediaType ISO_B1 = new MediaType(11, "ISO_B1"); //$NON-NLS-1$
+        public static final MediaType ISO_B2 = new MediaType(12, "ISO_B2"); //$NON-NLS-1$
+        public static final MediaType ISO_B3 = new MediaType(13, "ISO_B3"); //$NON-NLS-1$
+        public static final MediaType ISO_B4 = new MediaType(14, "ISO_B4"); //$NON-NLS-1$
+        public static final MediaType ISO_B5 = new MediaType(15, "ISO_B5"); //$NON-NLS-1$
+        public static final MediaType ISO_B6 = new MediaType(16, "ISO_B6"); //$NON-NLS-1$
+        public static final MediaType ISO_B7 = new MediaType(17, "ISO_B7"); //$NON-NLS-1$
+        public static final MediaType ISO_B8 = new MediaType(18, "ISO_B8"); //$NON-NLS-1$
+        public static final MediaType ISO_B9 = new MediaType(19, "ISO_B9"); //$NON-NLS-1$
+        public static final MediaType ISO_B10 = new MediaType(20, "ISO_B10"); //$NON-NLS-1$
+
+        public static final MediaType JIS_B0 = new MediaType(30, "JIS_B0"); //$NON-NLS-1$
+        public static final MediaType JIS_B1 = new MediaType(31, "JIS_B1"); //$NON-NLS-1$
+        public static final MediaType JIS_B2 = new MediaType(32, "JIS_B2"); //$NON-NLS-1$
+        public static final MediaType JIS_B3 = new MediaType(33, "JIS_B3"); //$NON-NLS-1$
+        public static final MediaType JIS_B4 = new MediaType(34, "JIS_B4"); //$NON-NLS-1$
+        public static final MediaType JIS_B5 = new MediaType(35, "JIS_B5"); //$NON-NLS-1$
+        public static final MediaType JIS_B6 = new MediaType(36, "JIS_B6"); //$NON-NLS-1$
+        public static final MediaType JIS_B7 = new MediaType(37, "JIS_B7"); //$NON-NLS-1$
+        public static final MediaType JIS_B8 = new MediaType(38, "JIS_B8"); //$NON-NLS-1$
+        public static final MediaType JIS_B9 = new MediaType(39, "JIS_B9"); //$NON-NLS-1$
+        public static final MediaType JIS_B10 = new MediaType(40, "JIS_B10"); //$NON-NLS-1$
+
+        public static final MediaType ISO_C0 = new MediaType(50, "ISO_C0"); //$NON-NLS-1$
+        public static final MediaType ISO_C1 = new MediaType(51, "ISO_C1"); //$NON-NLS-1$
+        public static final MediaType ISO_C2 = new MediaType(52, "ISO_C2"); //$NON-NLS-1$
+        public static final MediaType ISO_C3 = new MediaType(53, "ISO_C3"); //$NON-NLS-1$
+        public static final MediaType ISO_C4 = new MediaType(54, "ISO_C4"); //$NON-NLS-1$
+        public static final MediaType ISO_C5 = new MediaType(55, "ISO_C5"); //$NON-NLS-1$
+        public static final MediaType ISO_C6 = new MediaType(56, "ISO_C6"); //$NON-NLS-1$
+        public static final MediaType ISO_C7 = new MediaType(57, "ISO_C7"); //$NON-NLS-1$
+        public static final MediaType ISO_C8 = new MediaType(58, "ISO_C8"); //$NON-NLS-1$
+        public static final MediaType ISO_C9 = new MediaType(59, "ISO_C9"); //$NON-NLS-1$
+        public static final MediaType ISO_C10 = new MediaType(60, "ISO_C10"); //$NON-NLS-1$
 
         public static final MediaType ISO_DESIGNATED_LONG = new MediaType(100,
-                "ISO_DESIGNATED_LONG");
+                "ISO_DESIGNATED_LONG"); //$NON-NLS-1$
 
         public static final MediaType EXECUTIVE = new MediaType(101,
-                "EXECUTIVE");
+                "EXECUTIVE"); //$NON-NLS-1$
 
-        public static final MediaType FOLIO = new MediaType(102, "FOLIO");
+        public static final MediaType FOLIO = new MediaType(102, "FOLIO"); //$NON-NLS-1$
 
-        public static final MediaType INVOICE = new MediaType(103, "INVOICE");
+        public static final MediaType INVOICE = new MediaType(103, "INVOICE"); //$NON-NLS-1$
 
-        public static final MediaType LEDGER = new MediaType(104, "LEDGER");
+        public static final MediaType LEDGER = new MediaType(104, "LEDGER"); //$NON-NLS-1$
 
         public static final MediaType NA_LETTER = new MediaType(105,
-                "NA_LETTER");
+                "NA_LETTER"); //$NON-NLS-1$
 
-        public static final MediaType NA_LEGAL = new MediaType(106, "NA_LEGAL");
+        public static final MediaType NA_LEGAL = new MediaType(106, "NA_LEGAL"); //$NON-NLS-1$
 
-        public static final MediaType QUARTO = new MediaType(107, "QUARTO");
+        public static final MediaType QUARTO = new MediaType(107, "QUARTO"); //$NON-NLS-1$
 
-        public static final MediaType A = new MediaType(200, "A");
-        public static final MediaType B = new MediaType(201, "B");
-        public static final MediaType C = new MediaType(202, "C");
-        public static final MediaType D = new MediaType(203, "D");
-        public static final MediaType E = new MediaType(204, "E");
+        public static final MediaType A = new MediaType(200, "A"); //$NON-NLS-1$
+        public static final MediaType B = new MediaType(201, "B"); //$NON-NLS-1$
+        public static final MediaType C = new MediaType(202, "C"); //$NON-NLS-1$
+        public static final MediaType D = new MediaType(203, "D"); //$NON-NLS-1$
+        public static final MediaType E = new MediaType(204, "E"); //$NON-NLS-1$
 
         public static final MediaType NA_10X15_ENVELOPE = new MediaType(311,
-                "NA_10X15_ENVELOPE");
+                "NA_10X15_ENVELOPE"); //$NON-NLS-1$
         public static final MediaType NA_10X14_ENVELOPE = new MediaType(310,
-                "NA_10X14_ENVELOPE");
+                "NA_10X14_ENVELOPE"); //$NON-NLS-1$
         public static final MediaType NA_10X13_ENVELOPE = new MediaType(309,
-                "NA_10X13_ENVELOPE");
+                "NA_10X13_ENVELOPE"); //$NON-NLS-1$
         public static final MediaType NA_9X12_ENVELOPE = new MediaType(308,
-                "NA_9X12_ENVELOPE");
+                "NA_9X12_ENVELOPE"); //$NON-NLS-1$
         public static final MediaType NA_9X11_ENVELOPE = new MediaType(307,
-                "NA_9X11_ENVELOPE");
+                "NA_9X11_ENVELOPE"); //$NON-NLS-1$
         public static final MediaType NA_7X9_ENVELOPE = new MediaType(306,
-                "NA_7X9_ENVELOPE");
+                "NA_7X9_ENVELOPE"); //$NON-NLS-1$
         public static final MediaType NA_6X9_ENVELOPE = new MediaType(305,
-                "NA_6X9_ENVELOPE");
+                "NA_6X9_ENVELOPE"); //$NON-NLS-1$
         public static final MediaType NA_NUMBER_9_ENVELOPE = new MediaType(
-                312, "NA_NUMBER_9_ENVELOPE");
+                312, "NA_NUMBER_9_ENVELOPE"); //$NON-NLS-1$
         public static final MediaType NA_NUMBER_10_ENVELOPE = new MediaType(
-                313, "NA_NUMBER_10_ENVELOPE");
+                313, "NA_NUMBER_10_ENVELOPE"); //$NON-NLS-1$
         public static final MediaType NA_NUMBER_11_ENVELOPE = new MediaType(
-                314, "NA_NUMBER_11_ENVELOPE");
+                314, "NA_NUMBER_11_ENVELOPE"); //$NON-NLS-1$
         public static final MediaType NA_NUMBER_12_ENVELOPE = new MediaType(
-                315, "NA_NUMBER_12_ENVELOPE");
+                315, "NA_NUMBER_12_ENVELOPE"); //$NON-NLS-1$
         public static final MediaType NA_NUMBER_14_ENVELOPE = new MediaType(
-                316, "NA_NUMBER_14_ENVELOPE");
+                316, "NA_NUMBER_14_ENVELOPE"); //$NON-NLS-1$
         public static final MediaType INVITE_ENVELOPE = new MediaType(300,
-                "INVITE_ENVELOPE");
+                "INVITE_ENVELOPE"); //$NON-NLS-1$
         public static final MediaType ITALY_ENVELOPE = new MediaType(301,
-                "ITALY_ENVELOPE");
+                "ITALY_ENVELOPE"); //$NON-NLS-1$
         public static final MediaType MONARCH_ENVELOPE = new MediaType(302,
-                "MONARCH_ENVELOPE");
+                "MONARCH_ENVELOPE"); //$NON-NLS-1$
         public static final MediaType PERSONAL_ENVELOPE = new MediaType(304,
-                "PERSONAL_ENVELOPE");
+                "PERSONAL_ENVELOPE"); //$NON-NLS-1$
 
         /*aliases*/
         public static final MediaType A0 = ISO_A0;
@@ -250,7 +252,7 @@
             name = n;
         }
         private MediaType(){
-            this(4, "ISO_A4");
+            this(4, "ISO_A4"); //$NON-NLS-1$
         }
     }
 
@@ -258,16 +260,16 @@
         private final String name;
 
         public static final OrientationRequestedType PORTRAIT
-                            = new OrientationRequestedType(0, "PORTRAIT");
+                            = new OrientationRequestedType(0, "PORTRAIT"); //$NON-NLS-1$
         public static final OrientationRequestedType LANDSCAPE
-                            = new OrientationRequestedType(1, "LANDSCAPE");
+                            = new OrientationRequestedType(1, "LANDSCAPE"); //$NON-NLS-1$
 
         private OrientationRequestedType(int i, String n){
             super();
             name = n;
         }
         private OrientationRequestedType(){
-            this(0, "PORTRAIT");
+            this(0, "PORTRAIT"); //$NON-NLS-1$
         }
     }
 
@@ -275,16 +277,16 @@
         private final String name;
 
         public static final OriginType PHYSICAL
-                            = new OriginType(0, "PHYSICAL");
+                            = new OriginType(0, "PHYSICAL"); //$NON-NLS-1$
         public static final OriginType PRINTABLE
-                            = new OriginType(1, "PRINTABLE");
+                            = new OriginType(1, "PRINTABLE"); //$NON-NLS-1$
 
         private OriginType(int i, String n){
             super();
             name = n;
         }
         private OriginType(){
-            this(0, "PHYSICAL");
+            this(0, "PHYSICAL"); //$NON-NLS-1$
         }
     }
 
@@ -292,18 +294,18 @@
         private final String name;
 
         public static final PrintQualityType HIGH = new PrintQualityType(5,
-                "HIGH");
+                "HIGH"); //$NON-NLS-1$
         public static final PrintQualityType NORMAL = new PrintQualityType(4,
-                "NORMAL");
+                "NORMAL"); //$NON-NLS-1$
         public static final PrintQualityType DRAFT = new PrintQualityType(2,
-                "DRAFT");
+                "DRAFT"); //$NON-NLS-1$
 
         private PrintQualityType(int i, String n){
             name = n;
         }
 
         private PrintQualityType(){
-            this(4, "NORMAL");
+            this(4, "NORMAL"); //$NON-NLS-1$
         }
     }
  /*--------------- end of section of the nested classes ------------------*/
@@ -384,12 +386,12 @@
          */
 
         String s;
-        s = "color=" + getColor().name  + ",media=" + getMedia().name
-        + ",orientation-requested=" + getOrientationRequested().name
-        + ",origin=" + getOrigin().name
-        + ",print-quality=" + getPrintQuality().name
-        + ",printer-resolution=" + printerResolution[0] + "x"
-        + printerResolution[1] + (printerResolution[2]==3?"dpi":"dpcm");
+        s = "color=" + getColor().name  + ",media=" + getMedia().name //$NON-NLS-1$ //$NON-NLS-2$
+        + ",orientation-requested=" + getOrientationRequested().name //$NON-NLS-1$
+        + ",origin=" + getOrigin().name //$NON-NLS-1$
+        + ",print-quality=" + getPrintQuality().name //$NON-NLS-1$
+        + ",printer-resolution=" + printerResolution[0] + "x" //$NON-NLS-1$ //$NON-NLS-2$
+        + printerResolution[1] + (printerResolution[2]==3?"dpi":"dpcm"); //$NON-NLS-1$ //$NON-NLS-2$
         return s;
     }
 
@@ -410,7 +412,8 @@
 
     public void setColor(PageAttributes.ColorType color) {
         if (color == null) {
-            throw new IllegalArgumentException("Invalid value for color");
+            // awt.11C=Invalid value for color
+            throw new IllegalArgumentException(Messages.getString("awt.11C")); //$NON-NLS-1$
         }
         this.color = color;
     }
@@ -421,7 +424,8 @@
 
     public void setMedia(PageAttributes.MediaType media) {
         if(media == null) {
-            throw new IllegalArgumentException("Invalid value for media");
+            // awt.116=Invalid value for media
+            throw new IllegalArgumentException(Messages.getString("awt.116")); //$NON-NLS-1$
         }
         this.media = media;
     }
@@ -434,8 +438,8 @@
             PageAttributes.OrientationRequestedType orientationRequested) {
 
         if (orientationRequested == null) {
-            throw new IllegalArgumentException(
-                    "Invalid value for orientationRequested");
+            // awt.117=Invalid value for orientationRequested
+            throw new IllegalArgumentException(Messages.getString("awt.117")); //$NON-NLS-1$
         }
         this.orientationRequested = orientationRequested;
     }
@@ -449,8 +453,8 @@
             setOrientationRequested(OrientationRequestedType.LANDSCAPE);
             return;
         }
-        throw new IllegalArgumentException(
-                "Invalid value for orientationRequested");
+        // awt.117=Invalid value for orientationRequested
+        throw new IllegalArgumentException(Messages.getString("awt.117")); //$NON-NLS-1$
     }
 
     public PageAttributes.OrientationRequestedType getOrientationRequested() {
@@ -459,7 +463,8 @@
 
     public void setOrigin(PageAttributes.OriginType origin) {
         if (origin == null) {
-            throw new IllegalArgumentException("Invalid value for origin");
+            // awt.119=Invalid value for origin
+            throw new IllegalArgumentException(Messages.getString("awt.119")); //$NON-NLS-1$
         }
         this.origin = origin;
     }
@@ -470,8 +475,8 @@
 
     public void setPrintQuality(PageAttributes.PrintQualityType printQuality) {
         if (printQuality == null) {
-            throw new IllegalArgumentException(
-                    "Invalid value for printQuality");
+            // awt.11A=Invalid value for printQuality
+            throw new IllegalArgumentException(Messages.getString("awt.11A")); //$NON-NLS-1$
         }
         this.printQuality = printQuality;
     }
@@ -489,7 +494,8 @@
             setPrintQuality(PrintQualityType.HIGH);
             return;
         }
-        throw new IllegalArgumentException("Invalid value for printQuality");
+        // awt.11A=Invalid value for printQuality
+        throw new IllegalArgumentException(Messages.getString("awt.11A")); //$NON-NLS-1$
     }
 
     public PageAttributes.PrintQualityType getPrintQuality() {
@@ -502,8 +508,8 @@
                 || aprinterResolution[0] <= 0
                 || aprinterResolution[1] <= 0
                 || (aprinterResolution[2] != 3 && aprinterResolution[2] != 4)) {
-            throw new IllegalArgumentException(
-                    "Invalid value for printerResolution[]");
+            // awt.11B=Invalid value for printerResolution[]
+            throw new IllegalArgumentException(Messages.getString("awt.11B")); //$NON-NLS-1$
         }
         printerResolution = new int[3];
         printerResolution[0] = aprinterResolution[0];
@@ -513,8 +519,8 @@
 
     public void setPrinterResolution(int iprinterResolution) {
         if (iprinterResolution <= 0) {
-            throw new IllegalArgumentException(
-                    "Invalid value for printerResolution");
+            // awt.118=Invalid value for printerResolution
+            throw new IllegalArgumentException(Messages.getString("awt.118")); //$NON-NLS-1$
         }
         printerResolution = new int[3];
         printerResolution[0] = iprinterResolution;

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Panel.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Panel.java?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Panel.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Panel.java Thu Nov  2 01:45:21 2006
@@ -94,7 +94,7 @@
 
     @Override
     String autoName() {
-        return ("panel" + toolkit.autoNumber.nextPanel++);
+        return ("panel" + toolkit.autoNumber.nextPanel++); //$NON-NLS-1$
     }
 }
 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Point.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Point.java?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Point.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Point.java Thu Nov  2 01:45:21 2006
@@ -56,7 +56,7 @@
 
     @Override
     public String toString() {
-        return getClass().getName() + "[x=" + x + ",y=" + y + "]";
+        return getClass().getName() + "[x=" + x + ",y=" + y + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
     }
 
     @Override

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Polygon.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Polygon.java?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Polygon.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Polygon.java Thu Nov  2 01:45:21 2006
@@ -31,6 +31,7 @@
 import java.util.NoSuchElementException;
 
 import org.apache.harmony.awt.gl.*;
+import org.apache.harmony.awt.internal.nls.Messages;
 
 
 public class Polygon implements Shape, Serializable {
@@ -94,7 +95,8 @@
 
         public int currentSegment(double[] coords) {
             if (isDone()) {
-                throw new NoSuchElementException("Iterator out of bounds");
+                // awt.110=Iterator out of bounds
+                throw new NoSuchElementException(Messages.getString("awt.110")); //$NON-NLS-1$
             }
             if (index == p.npoints) {
                 return SEG_CLOSE;
@@ -109,7 +111,8 @@
 
         public int currentSegment(float[] coords) {
             if (isDone()) {
-                throw new NoSuchElementException("Iterator out of bounds");
+                // awt.110=Iterator out of bounds
+                throw new NoSuchElementException(Messages.getString("awt.110")); //$NON-NLS-1$
             }
             if (index == p.npoints) {
                 return SEG_CLOSE;
@@ -130,10 +133,12 @@
 
     public Polygon(int[] xpoints, int[] ypoints, int npoints) {
         if (npoints > xpoints.length || npoints > ypoints.length) {
-            throw new IndexOutOfBoundsException("Parameter npoints is greater than array length");
+            // awt.111=Parameter npoints is greater than array length
+            throw new IndexOutOfBoundsException(Messages.getString("awt.111")); //$NON-NLS-1$
         }
         if (npoints < 0) {
-            throw new NegativeArraySizeException("Negative number of points");
+            // awt.112=Negative number of points
+            throw new NegativeArraySizeException(Messages.getString("awt.112")); //$NON-NLS-1$
         }
         this.npoints = npoints;
         this.xpoints = new int[npoints];

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/PopupMenu.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/PopupMenu.java?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/PopupMenu.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/PopupMenu.java Thu Nov  2 01:45:21 2006
@@ -25,6 +25,8 @@
 import javax.accessibility.AccessibleContext;
 import javax.accessibility.AccessibleRole;
 
+import org.apache.harmony.awt.internal.nls.Messages;
+
 public class PopupMenu extends Menu {
 
 
@@ -42,7 +44,7 @@
     }
 
     public PopupMenu() throws HeadlessException {
-        this("");
+        this(""); //$NON-NLS-1$
         toolkit.lockAWT();
         try {
         } finally {
@@ -84,17 +86,21 @@
         try {
             MenuContainer parent = getParent();
             if (parent == null) {
-                throw new NullPointerException("parent is null");
+                // awt.71=Parent is null
+                throw new NullPointerException(Messages.getString("awt.71")); //$NON-NLS-1$
             }
             if (!(parent instanceof Component)) {
-                throw new IllegalArgumentException("parent is not a component");
+                // awt.11F=parent is not a component
+                throw new IllegalArgumentException(Messages.getString("awt.11F")); //$NON-NLS-1$
             }
             if (parent != origin && !( (parent instanceof Container) &&
                     ((Container)parent).isAncestorOf(origin) ) ) {
-                throw new IllegalArgumentException("origin is not a descendant of parent");
+                // awt.120=origin is not a descendant of parent
+                throw new IllegalArgumentException(Messages.getString("awt.120")); //$NON-NLS-1$
             }
             if ( !((Component)parent).isShowing()) {
-                throw new RuntimeException("parent must be showing on the screen");
+                // awt.121=parent must be showing on the screen
+                throw new RuntimeException(Messages.getString("awt.121")); //$NON-NLS-1$
             }
 
             if (EventQueue.isDispatchThread()) {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Rectangle.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Rectangle.java?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Rectangle.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Rectangle.java Thu Nov  2 01:45:21 2006
@@ -310,8 +310,8 @@
     public String toString() {
         // The output format based on 1.5 release behaviour. It could be obtained in the following way
         // System.out.println(new Rectangle().toString())
-        return getClass().getName() + "[x=" + x + ",y=" + y +
-            ",width=" + width + ",height=" + height + "]";
+        return getClass().getName() + "[x=" + x + ",y=" + y + //$NON-NLS-1$ //$NON-NLS-2$
+            ",width=" + width + ",height=" + height + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
     }
 
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/RenderingHints.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/RenderingHints.java?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/RenderingHints.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/RenderingHints.java Thu Nov  2 01:45:21 2006
@@ -201,7 +201,7 @@
 
     @Override
     public String toString() {
-        return "RenderingHints["+map.toString()+"]";
+        return "RenderingHints["+map.toString()+"]"; //$NON-NLS-1$ //$NON-NLS-2$
     }
 
     /**

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Robot.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Robot.java?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Robot.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Robot.java Thu Nov  2 01:45:21 2006
@@ -24,6 +24,7 @@
 import java.awt.image.BufferedImage;
 import java.lang.reflect.InvocationTargetException;
 
+import org.apache.harmony.awt.internal.nls.Messages;
 import org.apache.harmony.awt.wtk.NativeRobot;
 
 
@@ -41,11 +42,12 @@
     public Robot(GraphicsDevice screen) throws AWTException {
         Toolkit.checkHeadless();
         if (screen.getType() != GraphicsDevice.TYPE_RASTER_SCREEN) {
-            throw new IllegalArgumentException("not a screen device");
+            // awt.129=Not a screen device
+            throw new IllegalArgumentException(Messages.getString("awt.129")); //$NON-NLS-1$
         }
         SecurityManager sm = System.getSecurityManager();
         if (sm != null) {
-            sm.checkPermission(new AWTPermission("createRobot"));
+            sm.checkPermission(new AWTPermission("createRobot")); //$NON-NLS-1$
         }
         // create(or get) native robot instance
         // for the specified screen
@@ -60,18 +62,18 @@
          * System.out.println(new Robot());
          */
 
-        return getClass().getName() + "[" + "autoDelay = " + autoDelay +
-        ", autoWaitForIdle = " + autoWaitForIdle + "]";
+        return getClass().getName() + "[" + "autoDelay = " + autoDelay + //$NON-NLS-1$ //$NON-NLS-2$
+        ", autoWaitForIdle = " + autoWaitForIdle + "]"; //$NON-NLS-1$ //$NON-NLS-2$
     }
 
     public BufferedImage createScreenCapture(Rectangle screenRect) {
         SecurityManager sm = System.getSecurityManager();
         if (sm != null) {
-            sm.checkPermission(new AWTPermission("readDisplayPixels"));
+            sm.checkPermission(new AWTPermission("readDisplayPixels")); //$NON-NLS-1$
         }
         if (screenRect.isEmpty()) {
-            throw new IllegalArgumentException("Rectangle width" +
-                    " and height must be > 0");
+            // awt.13D=Rectangle width and height must be > 0
+            throw new IllegalArgumentException(Messages.getString("awt.13D")); //$NON-NLS-1$
         }
 
         return nativeRobot.createScreenCapture(screenRect);
@@ -140,8 +142,8 @@
 
     public void waitForIdle() {
         if (EventQueue.isDispatchThread()) {
-            throw new IllegalThreadStateException("Cannot call method " +
-                    "from the event dispatcher thread");
+            // awt.13E=Cannot call method from the event dispatcher thread
+            throw new IllegalThreadStateException(Messages.getString("awt.13E")); //$NON-NLS-1$
         }
         try {
             EventQueue.invokeAndWait(new Runnable() {
@@ -160,7 +162,8 @@
 
     private void checkDelay(int ms) {
         if ((ms < 0) || (ms > 60000)) {
-            throw new IllegalArgumentException("Delay must be to 0 to 60,000ms");
+            // awt.13F=Delay must be to 0 to 60,000ms
+            throw new IllegalArgumentException(Messages.getString("awt.13F")); //$NON-NLS-1$
         }
     }
 
@@ -168,7 +171,8 @@
         int mask = (InputEvent.BUTTON1_MASK | InputEvent.BUTTON2_MASK |
                     InputEvent.BUTTON3_MASK);
         if ((buttons & mask) != buttons) {
-            throw new IllegalArgumentException("Invalid combination of button flags");
+            // awt.140=Invalid combination of button flags
+            throw new IllegalArgumentException(Messages.getString("awt.140")); //$NON-NLS-1$
         }
     }
 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ScrollPane.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ScrollPane.java?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ScrollPane.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ScrollPane.java Thu Nov  2 01:45:21 2006
@@ -24,6 +24,7 @@
 import javax.accessibility.AccessibleRole;
 import org.apache.harmony.awt.ScrollStateController;
 import org.apache.harmony.awt.Scrollable;
+import org.apache.harmony.awt.internal.nls.Messages;
 import org.apache.harmony.awt.theme.DefaultButton;
 
 public class ScrollPane extends Container implements Accessible {
@@ -162,7 +163,8 @@
                 case SCROLLBARS_NEVER:
                     break;
                 default:
-                    throw new IllegalArgumentException("illegal scrollbar " + "display policy");
+                    // awt.146=illegal scrollbar display policy
+                    throw new IllegalArgumentException(Messages.getString("awt.146")); //$NON-NLS-1$
             }
             this.scrollbarDisplayPolicy = scrollbarDisplayPolicy;
             setWheelScrollingEnabled(true);
@@ -214,22 +216,22 @@
             } catch (NullPointerException npe) {
             }
             Insets ins = getInsets();
-            String strPolicy = "";
+            String strPolicy = ""; //$NON-NLS-1$
             switch (getScrollbarDisplayPolicy()) {
                 case SCROLLBARS_ALWAYS:
-                    strPolicy = "always";
+                    strPolicy = "always"; //$NON-NLS-1$
                     break;
                 case SCROLLBARS_AS_NEEDED:
-                    strPolicy = "as-needed";
+                    strPolicy = "as-needed"; //$NON-NLS-1$
                     break;
                 case SCROLLBARS_NEVER:
-                    strPolicy = "never";
+                    strPolicy = "never"; //$NON-NLS-1$
                     break;
             }
-            return (super.paramString() + ",ScrollPosition=(" + scrollPos.x + "," + scrollPos.x
-                    + ")" + ",Insets=(" + ins.left + "," + ins.top + "," + ins.right + ","
-                    + ins.bottom + ")" + ",ScrollbarDisplayPolicy=" + strPolicy
-                    + ",wheelScrollingEnabled=" + isWheelScrollingEnabled());
+            return (super.paramString() + ",ScrollPosition=(" + scrollPos.x + "," + scrollPos.x //$NON-NLS-1$ //$NON-NLS-2$
+                    + ")" + ",Insets=(" + ins.left + "," + ins.top + "," + ins.right + "," //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
+                    + ins.bottom + ")" + ",ScrollbarDisplayPolicy=" + strPolicy //$NON-NLS-1$ //$NON-NLS-2$
+                    + ",wheelScrollingEnabled=" + isWheelScrollingEnabled()); //$NON-NLS-1$
         } finally {
             toolkit.unlockAWT();
         }
@@ -300,7 +302,8 @@
         toolkit.lockAWT();
         try {
             if (index > 0) {
-                throw new IllegalArgumentException("position greater than 0");
+                // awt.147=position greater than 0
+                throw new IllegalArgumentException(Messages.getString("awt.147")); //$NON-NLS-1$
             }
             if (getComponentCount() > 0) {
                 remove(0);
@@ -334,7 +337,8 @@
         try {
             Component comp = getComponent();
             if (comp == null) {
-                throw new NullPointerException("child is null");
+                // awt.148=child is null
+                throw new NullPointerException(Messages.getString("awt.148")); //$NON-NLS-1$
             }
             return new Point(hAdjustable.getValue(), vAdjustable.getValue());
         } finally {
@@ -404,7 +408,8 @@
         toolkit.lockAWT();
         try {
             //don't let user set layout: throw error
-            throw new AWTError("ScrollPane controls layout");
+            // awt.149=ScrollPane controls layout
+            throw new AWTError(Messages.getString("awt.149")); //$NON-NLS-1$
         } finally {
             toolkit.unlockAWT();
         }
@@ -496,7 +501,7 @@
 
     @Override
     String autoName() {
-        return ("scrollpane" + toolkit.autoNumber.nextScrollPane++);
+        return ("scrollpane" + toolkit.autoNumber.nextScrollPane++); //$NON-NLS-1$
     }
 
     Dimension calculateMinimumSize() {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ScrollPaneAdjustable.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ScrollPaneAdjustable.java?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ScrollPaneAdjustable.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/ScrollPaneAdjustable.java Thu Nov  2 01:45:21 2006
@@ -23,6 +23,7 @@
 import java.io.Serializable;
 import java.util.Collection;
 import org.apache.harmony.awt.ScrollbarStateController;
+import org.apache.harmony.awt.internal.nls.Messages;
 import org.apache.harmony.awt.state.ScrollbarState;
 import org.apache.harmony.awt.wtk.NativeWindow;
 
@@ -278,7 +279,7 @@
 
     @Override
     public String toString() {
-        return (getClass().getName() + "[" + paramString() + "]");
+        return (getClass().getName() + "[" + paramString() + "]"); //$NON-NLS-1$ //$NON-NLS-2$
     }
 
     public int getValue() {
@@ -324,21 +325,21 @@
          * System.out.println(new ScrollPane().getVAdjustable());
          * System.out.println(new ScrollPane().getHAdjustable());
          */
-        String orientStr = "";
+        String orientStr = ""; //$NON-NLS-1$
         switch (orientation) {
             case Adjustable.HORIZONTAL:
-                orientStr = "horizontal";
+                orientStr = "horizontal"; //$NON-NLS-1$
                 break;
             case Adjustable.VERTICAL:
-                orientStr = "vertical";
+                orientStr = "vertical"; //$NON-NLS-1$
                 break;
             case Adjustable.NO_ORIENTATION:
-                orientStr = "no orientation";
+                orientStr = "no orientation"; //$NON-NLS-1$
                 break;
         }
-        return (orientStr + ",val=" + value + ",vis=" + visibleAmount + ",[" + minimum + ".."
-                + maximum + "]" + ",unit=" + unitIncrement + ",block=" + blockIncrement
-                + ",isAdjusting=" + valueIsAdjusting);
+        return (orientStr + ",val=" + value + ",vis=" + visibleAmount + ",[" + minimum + ".." //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+                + maximum + "]" + ",unit=" + unitIncrement + ",block=" + blockIncrement //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+                + ",isAdjusting=" + valueIsAdjusting); //$NON-NLS-1$
     }
 
     public void setBlockIncrement(int b) {
@@ -346,11 +347,13 @@
     }
 
     public void setMaximum(int max) {
-        throw new AWTError("Can be set by scrollpane only");
+        // awt.144=Can be set by scrollpane only
+        throw new AWTError(Messages.getString("awt.144")); //$NON-NLS-1$
     }
 
     public void setMinimum(int min) {
-        throw new AWTError("Can be set by scrollpane only");
+        // awt.144=Can be set by scrollpane only
+        throw new AWTError(Messages.getString("awt.144")); //$NON-NLS-1$
     }
 
     public void setUnitIncrement(int u) {
@@ -362,7 +365,8 @@
     }
 
     public void setVisibleAmount(int vis) {
-        throw new AWTError("Can be set by scrollpane only");
+        // awt.144=Can be set by scrollpane only
+        throw new AWTError(Messages.getString("awt.144")); //$NON-NLS-1$
     }
 
     public void addAdjustmentListener(AdjustmentListener l) {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Scrollbar.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Scrollbar.java?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Scrollbar.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Scrollbar.java Thu Nov  2 01:45:21 2006
@@ -27,6 +27,7 @@
 import javax.accessibility.AccessibleStateSet;
 import javax.accessibility.AccessibleValue;
 import org.apache.harmony.awt.ScrollbarStateController;
+import org.apache.harmony.awt.internal.nls.Messages;
 import org.apache.harmony.awt.state.ScrollbarState;
 
 public class Scrollbar extends Component implements Adjustable, Accessible {
@@ -458,9 +459,9 @@
          */
         toolkit.lockAWT();
         try {
-            return (super.paramString() + ",val=" + getValue() + ",vis=" + getVisibleAmount()
-                    + ",min=" + getMinimum() + ",max=" + getMaximum()
-                    + (getOrientation() == HORIZONTAL ? ",horz" : ",vert") + ",isAdjusting=" + getValueIsAdjusting());
+            return (super.paramString() + ",val=" + getValue() + ",vis=" + getVisibleAmount() //$NON-NLS-1$ //$NON-NLS-2$
+                    + ",min=" + getMinimum() + ",max=" + getMaximum() //$NON-NLS-1$ //$NON-NLS-2$
+                    + (getOrientation() == HORIZONTAL ? ",horz" : ",vert") + ",isAdjusting=" + getValueIsAdjusting()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
         } finally {
             toolkit.unlockAWT();
         }
@@ -517,7 +518,8 @@
         toolkit.lockAWT();
         try {
             if ((orientation != HORIZONTAL) && (orientation != VERTICAL)) {
-                throw new IllegalArgumentException("illegal scrollbar orientation");
+                // awt.113=illegal scrollbar orientation
+                throw new IllegalArgumentException(Messages.getString("awt.113")); //$NON-NLS-1$
             }
             this.orientation = orientation;
             doRepaint();
@@ -617,7 +619,7 @@
 
     @Override
     String autoName() {
-        return ("scrollbar" + toolkit.autoNumber.nextScrollbar++);
+        return ("scrollbar" + toolkit.autoNumber.nextScrollbar++); //$NON-NLS-1$
     }
 
     @Override

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/SystemColor.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/SystemColor.java?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/SystemColor.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/SystemColor.java Thu Nov  2 01:45:21 2006
@@ -145,7 +145,7 @@
     private final int index;
     @Override
     public String toString() {
-        return getClass().getName() + "[index=" + index + "]";
+        return getClass().getName() + "[index=" + index + "]"; //$NON-NLS-1$ //$NON-NLS-2$
     }
 
     @Override
@@ -174,7 +174,7 @@
         stream.defaultReadObject();
 
         FieldsAccessor accessor = new FieldsAccessor(Component.class, this);
-        accessor.set("toolkit", Toolkit.getDefaultToolkit());
+        accessor.set("toolkit", Toolkit.getDefaultToolkit()); //$NON-NLS-1$
     }
 
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TextArea.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TextArea.java?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TextArea.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TextArea.java Thu Nov  2 01:45:21 2006
@@ -31,6 +31,7 @@
 import javax.swing.text.View;
 import org.apache.harmony.awt.ScrollStateController;
 import org.apache.harmony.awt.Scrollable;
+import org.apache.harmony.awt.internal.nls.Messages;
 import org.apache.harmony.awt.text.TextFactory;
 import org.apache.harmony.awt.wtk.NativeWindow;
 
@@ -267,7 +268,7 @@
         toolkit.lockAWT();
         try {
             Toolkit.checkHeadless();
-            setFont(new Font("Dialog", Font.PLAIN, 12)); // QUICK FIX
+            setFont(new Font("Dialog", Font.PLAIN, 12)); // QUICK FIX //$NON-NLS-1$
             setText(text);
             this.rows = Math.max(0, rows);
             this.columns = Math.max(0, columns);
@@ -538,20 +539,20 @@
             String strScrollbarVis = null;
             switch (getScrollbarVisibility()) {
                 case SCROLLBARS_BOTH:
-                    strScrollbarVis = "both";
+                    strScrollbarVis = "both"; //$NON-NLS-1$
                     break;
                 case SCROLLBARS_HORIZONTAL_ONLY:
-                    strScrollbarVis = "horizontal only";
+                    strScrollbarVis = "horizontal only"; //$NON-NLS-1$
                     break;
                 case SCROLLBARS_NONE:
-                    strScrollbarVis = "none";
+                    strScrollbarVis = "none"; //$NON-NLS-1$
                     break;
                 case SCROLLBARS_VERTICAL_ONLY:
-                    strScrollbarVis = "vertical only";
+                    strScrollbarVis = "vertical only"; //$NON-NLS-1$
                     break;
             }
-            return (super.paramString() + ",rows=" + getRows() + ",columns=" + getColumns()
-                    + ",scrollbarVisibility=" + strScrollbarVis);
+            return (super.paramString() + ",rows=" + getRows() + ",columns=" + getColumns() //$NON-NLS-1$ //$NON-NLS-2$
+                    + ",scrollbarVisibility=" + strScrollbarVis); //$NON-NLS-1$
         } finally {
             toolkit.unlockAWT();
         }
@@ -630,7 +631,8 @@
         toolkit.lockAWT();
         try {
             if (columns < 0) {
-                throw new IllegalArgumentException("columns less than zero.");
+                // awt.69=columns less than zero.
+                throw new IllegalArgumentException(Messages.getString("awt.69")); //$NON-NLS-1$
             }
             this.columns = columns;
         } finally {
@@ -642,7 +644,8 @@
         toolkit.lockAWT();
         try {
             if (rows < 0) {
-                throw new IllegalArgumentException("rows less than zero.");
+                // awt.6A=rows less than zero.
+                throw new IllegalArgumentException(Messages.getString("awt.6A")); //$NON-NLS-1$
             }
             this.rows = rows;
         } finally {
@@ -832,6 +835,6 @@
 
     @Override
     String autoName() {
-        return ("text" + toolkit.autoNumber.nextTextArea++);
+        return ("text" + toolkit.autoNumber.nextTextArea++); //$NON-NLS-1$
     }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TextComponent.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TextComponent.java?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TextComponent.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TextComponent.java Thu Nov  2 01:45:21 2006
@@ -47,6 +47,8 @@
 import javax.swing.text.View;
 import javax.swing.text.ViewFactory;
 import javax.swing.text.Position.Bias;
+
+import org.apache.harmony.awt.internal.nls.Messages;
 import org.apache.harmony.awt.state.TextComponentState;
 import org.apache.harmony.awt.text.AWTTextAction;
 import org.apache.harmony.awt.text.ActionNames;
@@ -173,7 +175,7 @@
 
         public String getSelectedText() {
             String selText = TextComponent.this.getSelectedText();
-            return ("".equals(selText) ? null : selText);
+            return ("".equals(selText) ? null : selText); //$NON-NLS-1$
         }
 
         public String getAfterIndex(int part, int index) {
@@ -508,7 +510,7 @@
         state = new State();
         editable = true;
         dispatchToIM = true; // had been disabled by createBehavior()
-        setFont(new Font("DialogInput", Font.PLAIN, 12)); // QUICK FIX
+        setFont(new Font("DialogInput", Font.PLAIN, 12)); // QUICK FIX //$NON-NLS-1$
         document = new PlainDocument();
         //        text = new StringBuffer();
         setTextKit(new TextKitImpl());
@@ -619,7 +621,7 @@
         try {
             return document.getText(0, document.getLength());
         } catch (BadLocationException e) {
-            return "";
+            return ""; //$NON-NLS-1$
         } finally {
             toolkit.unlockAWT();
         }
@@ -633,9 +635,9 @@
          */
         toolkit.lockAWT();
         try {
-            return (super.paramString() + ",text=" + getText()
-                    + (isEditable() ? ",editable" : "") + ",selection=" + getSelectionStart()
-                    + "-" + getSelectionEnd());
+            return (super.paramString() + ",text=" + getText() //$NON-NLS-1$
+                    + (isEditable() ? ",editable" : "") + ",selection=" + getSelectionStart() //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+                    + "-" + getSelectionEnd()); //$NON-NLS-1$
         } finally {
             toolkit.unlockAWT();
         }
@@ -759,7 +761,8 @@
         toolkit.lockAWT();
         try {
             if (position < 0) {
-                throw new IllegalArgumentException("position less than zero.");
+                // awt.101=position less than zero.
+                throw new IllegalArgumentException(Messages.getString("awt.101")); //$NON-NLS-1$
             }
             position = Math.min(document.getLength(), position);
         } finally {
@@ -814,7 +817,7 @@
         toolkit.lockAWT();
         try {
             if (text == null) {
-                text = "";
+                text = ""; //$NON-NLS-1$
             }
         } finally {
             toolkit.unlockAWT();
@@ -1057,7 +1060,8 @@
         BreakIterator bi = BreakIterator.getWordInstance();
         int length = document.getLength();
         if (pos < 0 || pos > length) {
-            throwException("No word at " + pos, pos);
+            // awt.2B=No word at {0}
+            throwException(Messages.getString("awt.2B", pos), pos); //$NON-NLS-1$
         }
         String content = document.getText(0, length);
         bi.setText(content);
@@ -1068,7 +1072,8 @@
         BreakIterator bi = BreakIterator.getWordInstance();
         int length = document.getLength();
         if (pos < 0 || pos > length) {
-            throwException("No word at " + pos, pos);
+            // awt.2B=No word at {0}
+            throwException(Messages.getString("awt.2B", pos), pos); //$NON-NLS-1$
         }
         String content = null;
         content = document.getText(0, length);

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TextField.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TextField.java?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TextField.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TextField.java Thu Nov  2 01:45:21 2006
@@ -30,6 +30,8 @@
 import javax.swing.event.ChangeEvent;
 import javax.swing.event.ChangeListener;
 import javax.swing.text.View;
+
+import org.apache.harmony.awt.internal.nls.Messages;
 import org.apache.harmony.awt.text.AWTTextAction;
 import org.apache.harmony.awt.text.ActionNames;
 import org.apache.harmony.awt.text.ActionSet;
@@ -283,7 +285,7 @@
         try {
             String paramStr = super.paramString();
             if (echoCharIsSet()) {
-                paramStr += ",echo=" + getEchoChar();
+                paramStr += ",echo=" + getEchoChar(); //$NON-NLS-1$
             }
             return paramStr;
         } finally {
@@ -331,7 +333,8 @@
         toolkit.lockAWT();
         try {
             if (columns < 0) {
-                throw new IllegalArgumentException("columns less than zero.");
+                // awt.102=columns less than zero.
+                throw new IllegalArgumentException(Messages.getString("awt.102")); //$NON-NLS-1$
             }
             this.columns = columns;
         } finally {
@@ -507,7 +510,7 @@
 
     @Override
     String autoName() {
-        return ("textfield" + toolkit.autoNumber.nextTextField++);
+        return ("textfield" + toolkit.autoNumber.nextTextField++); //$NON-NLS-1$
     }
 
     /**

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TexturePaint.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TexturePaint.java?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TexturePaint.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/TexturePaint.java Thu Nov  2 01:45:21 2006
@@ -26,6 +26,8 @@
 import java.awt.image.DataBufferInt;
 import java.awt.image.DataBufferUShort;
 
+import org.apache.harmony.awt.internal.nls.Messages;
+
 public class TexturePaint implements Paint {
     /**
      * The BufferedImage object used as texture  
@@ -39,10 +41,12 @@
 
     public TexturePaint(BufferedImage img, Rectangle2D anchor) {
         if (img == null) {
-            throw new NullPointerException("Image is null");
+            // awt.114=Image is null
+            throw new NullPointerException(Messages.getString("awt.114")); //$NON-NLS-1$
         }
         if (anchor == null) {
-            throw new NullPointerException("Anchor is null");
+            // awt.115=Anchor is null
+            throw new NullPointerException(Messages.getString("awt.115")); //$NON-NLS-1$
         }
         this.img = img;
         this.anchor = anchor;

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Toolkit.java Thu Nov  2 01:45:21 2006
@@ -80,6 +80,7 @@
 import org.apache.harmony.awt.datatransfer.DTK;
 import org.apache.harmony.awt.datatransfer.NativeClipboard;
 import org.apache.harmony.awt.gl.MultiRectArea;
+import org.apache.harmony.awt.internal.nls.Messages;
 import org.apache.harmony.awt.text.TextFieldKit;
 import org.apache.harmony.awt.text.TextKit;
 import org.apache.harmony.awt.wtk.CreationParams;
@@ -95,7 +96,7 @@
 import org.apache.harmony.awt.wtk.WindowFactory;
 
 public abstract class Toolkit {
-    private static final String RECOURCE_PATH = "org.apache.harmony.awt.resources.AWTProperties";
+    private static final String RECOURCE_PATH = "org.apache.harmony.awt.resources.AWTProperties"; //$NON-NLS-1$
 
     private static final ResourceBundle properties = loadResources(RECOURCE_PATH);
 
@@ -429,7 +430,8 @@
 
     public static String getProperty(String propName, String defVal) {
         if (propName == null) {
-            throw new NullPointerException("Property name is null");
+            // awt.7D=Property name is null
+            throw new NullPointerException(Messages.getString("awt.7D")); //$NON-NLS-1$
         }
         staticLockAWT();
         try {
@@ -483,13 +485,13 @@
     }
 
     private static String getWTKClassName() {
-        String osName = System.getProperty("os.name").toLowerCase();
-        String packageBase = "org.apache.harmony.awt.wtk", win = "windows", lin = "linux";
+        String osName = System.getProperty("os.name").toLowerCase(); //$NON-NLS-1$
+        String packageBase = "org.apache.harmony.awt.wtk", win = "windows", lin = "linux"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
         if (osName.startsWith(lin)) {
-            return packageBase + "." + lin + ".LinuxWTK";
+            return packageBase + "." + lin + ".LinuxWTK"; //$NON-NLS-1$ //$NON-NLS-2$
         }
         if (osName.startsWith(win)) {
-            return packageBase + "." + win + ".WinWTK";
+            return packageBase + "." + win + ".WinWTK"; //$NON-NLS-1$ //$NON-NLS-2$
         }
         return null;
     }
@@ -685,7 +687,7 @@
             unlockAWT();
         }
         if (true) {
-            throw new RuntimeException("Method is not implemented"); //TODO: implement
+            throw new RuntimeException("Method is not implemented"); //TODO: implement //$NON-NLS-1$
         }
         return null;
     }
@@ -724,7 +726,8 @@
             int w = img.getWidth(null), x = hotSpot.x;
             int h = img.getHeight(null), y = hotSpot.y;
             if (x < 0 || x >= w || y < 0 || y >= h) {
-                throw new IndexOutOfBoundsException("invalid hotSpot");
+                // awt.7E=invalid hotSpot
+                throw new IndexOutOfBoundsException(Messages.getString("awt.7E")); //$NON-NLS-1$
             }
             return new Cursor(name, img, hotSpot);
         } finally {
@@ -761,7 +764,7 @@
             if (desktopProperties.isEmpty()) {
                 initializeDesktopProperties();
             }
-            if (propName.equals("awt.dynamicLayoutSupported")) {
+            if (propName.equals("awt.dynamicLayoutSupported")) { //$NON-NLS-1$
                 // dynamicLayoutSupported is special case
                 return Boolean.valueOf(isDynamicLayoutActive());
             }
@@ -784,7 +787,7 @@
             unlockAWT();
         }
         if (true) {
-            throw new RuntimeException("Method is not implemented"); //TODO: implement
+            throw new RuntimeException("Method is not implemented"); //TODO: implement //$NON-NLS-1$
         }
         return true;
     }
@@ -816,7 +819,7 @@
             unlockAWT();
         }
         if (true) {
-            throw new RuntimeException("Method is not implemented"); //TODO: implement
+            throw new RuntimeException("Method is not implemented"); //TODO: implement //$NON-NLS-1$
         }
         return null;
     }
@@ -948,7 +951,7 @@
             unlockAWT();
         }
         if (true) {
-            throw new RuntimeException("Method is not implemented"); //TODO: implement
+            throw new RuntimeException("Method is not implemented"); //TODO: implement //$NON-NLS-1$
         }
         return;
     }
@@ -1020,7 +1023,7 @@
         CreationParams cp = new CreationParams();
         cp.child = true;
         cp.disabled = false;
-        cp.name = "EmbeddedWindow";
+        cp.name = "EmbeddedWindow"; //$NON-NLS-1$
         cp.parentId = ew.nativeWindowId;
         cp.x = 0;
         cp.y = 0;
@@ -1258,19 +1261,19 @@
     }
 
     private static Theme createTheme() {
-        String osName = System.getProperty("os.name").toLowerCase();
-        String packageBase = "org.apache.harmony.awt.theme", win = "windows", lin = "linux";
+        String osName = System.getProperty("os.name").toLowerCase(); //$NON-NLS-1$
+        String packageBase = "org.apache.harmony.awt.theme", win = "windows", lin = "linux"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
         PrivilegedAction<String> action = new PrivilegedAction<String>() {
             public String run() {
-                return System.getProperty("awt.theme");
+                return System.getProperty("awt.theme"); //$NON-NLS-1$
             }
         };
         String className = AccessController.doPrivileged(action);
         if (className == null) {
             if (osName.startsWith(lin)) {
-                className = packageBase + "." + lin + ".LinuxTheme";
+                className = packageBase + "." + lin + ".LinuxTheme"; //$NON-NLS-1$ //$NON-NLS-2$
             } else if (osName.startsWith(win)) {
-                className = packageBase + "." + win + ".WinTheme";
+                className = packageBase + "." + win + ".WinTheme"; //$NON-NLS-1$ //$NON-NLS-2$
             }
         }
         if (className != null) {
@@ -1283,7 +1286,7 @@
     }
 
     final class AWTEventsManager {
-        AWTPermission permission = new AWTPermission("listenToAllAWTEvents");
+        AWTPermission permission = new AWTPermission("listenToAllAWTEvents"); //$NON-NLS-1$
 
         private final AWTListenerList<AWTEventListenerProxy> listeners = new AWTListenerList<AWTEventListenerProxy>();
 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Window.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Window.java?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Window.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/Window.java Thu Nov  2 01:45:21 2006
@@ -43,6 +43,7 @@
 import org.apache.harmony.awt.FieldsAccessor;
 import org.apache.harmony.awt.gl.MultiRectArea;
 import org.apache.harmony.awt.im.InputMethodContext;
+import org.apache.harmony.awt.internal.nls.Messages;
 import org.apache.harmony.awt.wtk.NativeWindow;
 
 public class Window extends Container implements Accessible {
@@ -154,7 +155,8 @@
         try {
             if (!(this instanceof Frame) && !(this instanceof EmbeddedWindow)) {
                 if (owner == null) {
-                    throw new IllegalArgumentException("null owner window");
+                    // awt.125=null owner window
+                    throw new IllegalArgumentException(Messages.getString("awt.125")); //$NON-NLS-1$
                 }
                 owner.addWindow(this);
             }
@@ -175,7 +177,7 @@
             setFocusTraversalPolicy(KeyboardFocusManager.getCurrentKeyboardFocusManager()
                     .getDefaultFocusTraversalPolicy());
             redrawManager = new RedrawManager(this);
-            setFont(new Font("dialog", Font.PLAIN, 12)); // TODO: fix it
+            setFont(new Font("dialog", Font.PLAIN, 12)); // TODO: fix it //$NON-NLS-1$
             cursor = Cursor.getDefaultCursor(); // for Window cursor is always
                                                 // set(non-null)
         } finally {
@@ -276,7 +278,7 @@
             toolkit.unlockAWT();
         }
         if (true) {
-            throw new RuntimeException("Method is not implemented");
+            throw new RuntimeException("Method is not implemented"); //$NON-NLS-1$
         }
         return;
     }
@@ -288,7 +290,7 @@
             toolkit.unlockAWT();
         }
         if (true) {
-            throw new RuntimeException("Method is not implemented"); // TODO:
+            throw new RuntimeException("Method is not implemented"); // TODO: //$NON-NLS-1$
                                                                         // implement
         }
         return;
@@ -351,7 +353,7 @@
             toolkit.unlockAWT();
         }
         if (true) {
-            throw new RuntimeException("Method is not implemented"); // TODO:
+            throw new RuntimeException("Method is not implemented"); // TODO: //$NON-NLS-1$
                                                                         // implement
         }
         return null;
@@ -658,7 +660,7 @@
         }
         PrivilegedAction<String> action = new PrivilegedAction<String>() {
             public String run() {
-                return System.getProperty("awt.appletWarning", "Warning: Java window");
+                return System.getProperty("awt.appletWarning", "Warning: Java window"); //$NON-NLS-1$ //$NON-NLS-2$
             }
         };
         return AccessController.doPrivileged(action);
@@ -728,7 +730,7 @@
         } finally {
             toolkit.unlockAWT();
         }
-        firePropertyChange("alwaysOnTop", wasAlwaysOnTop, alwaysOnTop);
+        firePropertyChange("alwaysOnTop", wasAlwaysOnTop, alwaysOnTop); //$NON-NLS-1$
     }
 
     /**
@@ -774,7 +776,8 @@
         toolkit.lockAWT();
         try {
             if (byPlatform && visible && behaviour.isDisplayable()) {
-                throw new IllegalComponentStateException("Window is showing");
+                // awt.126=Window is showing
+                throw new IllegalComponentStateException(Messages.getString("awt.126")); //$NON-NLS-1$
             }
             locationByPlatform = byPlatform;
         } finally {
@@ -811,7 +814,7 @@
         } finally {
             toolkit.unlockAWT();
         }
-        firePropertyChange("focusableWindowState", oldState, focusableWindowState);
+        firePropertyChange("focusableWindowState", oldState, focusableWindowState); //$NON-NLS-1$
     }
 
     /**
@@ -931,8 +934,8 @@
             return;
         }
         if (isDisplayable()) {
-            throw new IllegalComponentStateException(
-                    "Cannot change the decorations while the window is visible");
+            // awt.127=Cannot change the decorations while the window is visible
+            throw new IllegalComponentStateException(Messages.getString("awt.127")); //$NON-NLS-1$
         }
         this.undecorated = undecorated;
     }
@@ -943,8 +946,8 @@
 
     void setPopup(boolean popup) {
         if (isDisplayable()) {
-            throw new IllegalComponentStateException(
-                    "Cannot change the decorations while the window is visible");
+            // awt.127=Cannot change the decorations while the window is visible
+            throw new IllegalComponentStateException(Messages.getString("awt.127")); //$NON-NLS-1$
         }
         this.popup = popup;
     }
@@ -972,7 +975,7 @@
         } finally {
             toolkit.unlockAWT();
         }
-        firePropertyChange("title", oldTitle, title);
+        firePropertyChange("title", oldTitle, title); //$NON-NLS-1$
     }
 
     @Override
@@ -1014,7 +1017,7 @@
     @Override
     String autoName() {
         int number = toolkit.autoNumber.nextWindow++;
-        return "window" + Integer.toString(number);
+        return "window" + Integer.toString(number); //$NON-NLS-1$
     }
 
     public void addWindowFocusListener(WindowFocusListener l) {
@@ -1156,10 +1159,12 @@
             GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
             gc = ge.getDefaultScreenDevice().getDefaultConfiguration();
         } else if (GraphicsEnvironment.isHeadless()) {
-            throw new IllegalArgumentException("Graphics environment is headless");
+            // awt.128=Graphics environment is headless
+            throw new IllegalArgumentException(Messages.getString("awt.128")); //$NON-NLS-1$
         }
         if (gc.getDevice().getType() != GraphicsDevice.TYPE_RASTER_SCREEN) {
-            throw new IllegalArgumentException("Not a screen device");
+            // awt.129=Not a screen device
+            throw new IllegalArgumentException(Messages.getString("awt.129")); //$NON-NLS-1$
         }
         return gc;
     }
@@ -1242,7 +1247,7 @@
             ClassNotFoundException {
         stream.defaultReadObject();
         FieldsAccessor accessor = new FieldsAccessor(Window.class, this);
-        accessor.set("graphicsConfiguration", getGraphicsConfiguration(null));
+        accessor.set("graphicsConfiguration", getGraphicsConfiguration(null)); //$NON-NLS-1$
         visible = false;
         redrawManager = new RedrawManager(this);
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/internal/nls/messages.properties
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/internal/nls/messages.properties?view=diff&rev=470296&r1=470295&r2=470296
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/internal/nls/messages.properties (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/internal/nls/messages.properties Thu Nov  2 01:45:21 2006
@@ -105,6 +105,169 @@
 awt.57=Double focus gained event for component
 awt.58=Double focus lost event for component
 awt.59=Application has run out of context thread group
+awt.5A=Default class for PrinterJob is not found
+awt.5B=No access to default class for PrinterJob
+awt.5C=Instantiation exception for PrinterJob
+awt.5D={0} is not supported
+awt.5E=pageIndex is more than book size
+awt.5F=wrong orientation
+awt.60=Width and Height mustn't be equal zero both
+awt.61=Unsupported data type: {0}
+awt.62=Wrong mask : {0}
+awt.63=Coordinates are not in bounds
+awt.64=The number of the bands in the subset is greater than the number of bands in the sample model
+awt.65=null argument
+awt.66=Invalid format
+awt.67=subclass is not derived from AWTKeyStroke
+awt.68=subclass could not be instantiated
+awt.69=columns less than zero.
+awt.6A=rows less than zero.
+awt.6B=Queue stack is empty
+awt.6C=Event queue stack is broken
+awt.6D=Point is null
+awt.6E=Color is null
+awt.6F=Index less than zero
+awt.70=MenuItem is null
+awt.71=Parent is null
+awt.72=Key event for unfocused component
+awt.73=no such item
+awt.74=Input parameters a and b should not be null
+awt.75=rows and cols cannot both be zero
+awt.76=rows and cols cannot be negative
+awt.77=default focus traversal policy cannot be null
+awt.78=invalid focus traversal key identifier
+awt.79=cannot set null focus traversal key
+awt.7A=focus traversal keys cannot map to KEY_TYPED events
+awt.7B=focus traversal keys must be unique for a Component
+awt.7C=this KeyboardFocusManager is not installed in the current thread's context
+awt.7D=Property name is null
+awt.7E=invalid hotSpot
+awt.7F=AddLayoutComponent: attempt to add null component
+awt.80=AddLayoutComponent: constraint object must be GridBagConstraints
+awt.81=AddLayoutComponent: {0}
+awt.82=RemoveLayoutComponent: attempt to remove null component
+awt.83=SetConstraints: attempt to get constraints of null component
+awt.84=SetConstraints: attempt to set null constraints
+awt.85=SetConstraints: {0}
+awt.86=MinimumLayoutSize: {0}
+awt.87=PreferredLayoutSize: {0}
+awt.88=LayoutContainer: {0}
+awt.89=LookupConstraints: attempt to get constraints of null component
+awt.8A=AdjustForGravity: attempt to use null constraints
+awt.8B=AdjustForGravity: attempt to use null rectangle
+awt.8C=AdjustForGravity: {0}
+awt.8D=REMINDER component expected after RELATIVE one
+awt.8E=component is out of grid's range
+awt.8F=Weights' overrides array is too long
+awt.90=Lengths' overrides array is too long
+awt.91=Unsupported constraints object: {0}
+awt.92=Constraints object must be String
+awt.93=cannot get component: invalid constraint: {0}
+awt.94=transform can not be null
+awt.95=Wrong start index: {0}
+awt.96=Wrong finish index: {0}
+awt.97=Wrong range length: {0}
+awt.98=Wrong count value, can not be negative: {0}
+awt.99=Wrong [start + count] is out of range: {0}
+awt.9A=Unsupported font format
+awt.9B=Can't create font - bad font data
+awt.9C=wrong value of GridBagConstraints: {0}
+awt.9D=relative grid size parameter goes after absolute grid coordinate
+awt.9E=wrong values sum of GridBagConstraints' gridwidth and gridx
+awt.9F=wrong values sum of GridBagConstraints' gridheight and gridy
+awt.100=component has RELATIVE width and height
+awt.101=position less than zero.
+awt.102=columns less than zero.
+awt.103=item is null
+awt.104=item doesn't exist in the choice menu
+awt.105=index less than zero
+awt.106=specified position is greater than the number of items
+awt.107=Color parameter outside of expected range: component {0}.
+awt.108=Alpha value outside of expected range.
+awt.109=Color parameter outside of expected range.
+awt.10A=Priority must be a value between 0 and 1, inclusive
+awt.10B=aContainer and aComponent cannot be null
+awt.10C=aContainer is not a focus cycle root of aComponent
+awt.10D=aContainer should be focus cycle root or focus traversal policy provider
+awt.10E=focusCycleRoot cannot be null
+awt.10F=improper alignment: {0}
+awt.110=Iterator out of bounds
+awt.111=Parameter npoints is greater than array length
+awt.112=Negative number of points
+awt.113=illegal scrollbar orientation
+awt.114=Image is null
+awt.115=Anchor is null
+awt.116=Invalid value for media
+awt.117=Invalid value for orientationRequested
+awt.118=Invalid value for printerResolution
+awt.119=Invalid value for origin
+awt.11A=Invalid value for printQuality
+awt.11B=Invalid value for printerResolution[]
+awt.11C=Invalid value for color
+awt.11D=Unknown rule
+awt.11E=Wrong alpha value
+awt.11F=parent is not a component
+awt.120=origin is not a descendant of parent
+awt.121=parent must be showing on the screen
+awt.122=Does not support display mode changes
+awt.123=Unsupported display mode: {0}
+awt.124=Cannot change the modality while the dialog is visible
+awt.125=null owner window
+awt.126=Window is showing
+awt.127=Cannot change the decorations while the window is visible
+awt.128=Graphics environment is headless
+awt.129=Not a screen device
+awt.12A=illegal component position
+awt.12B=adding container to itself
+awt.12C=adding container's parent to itself
+awt.12D=adding a window to a container
+awt.12E=Unknown component event id.
+awt.12F=Attempt to start nested mouse grab
+awt.130=Attempt to grab mouse in not displayable window
+awt.131=AddLayoutComponent: constraint object must be String
+awt.132=wrong parent for CardLayout
+awt.133=Negative width
+awt.134=Illegal cap
+awt.135=Illegal join
+awt.136=miterLimit less than 1.0f
+awt.137=Negative dashPhase
+awt.138=Zero dash length
+awt.139=Negative dash[{0}]
+awt.13A=All dash lengths zero
+awt.13B=offset off is out of range
+awt.13C=number of elemets len is out of range
+awt.13D=Rectangle width and height must be > 0
+awt.13E=Cannot call method from the event dispatcher thread
+awt.13F=Delay must be to 0 to 60,000ms
+awt.140=Invalid combination of button flags
+awt.141=failed to parse hotspot property for cursor: 
+awt.142=Exception: class {0} {1} occurred while loading: {2}
+awt.143=illegal cursor type
+awt.144=Can be set by scrollpane only
+awt.145=illegal file dialog mode
+awt.146=illegal scrollbar display policy
+awt.147=position greater than 0
+awt.148=child is null
+awt.149=ScrollPane controls layout
+awt.14A=Can not create VolatileImage with specified capabilities
+awt.14B=Only Canvas or Window is allowed
+awt.14C=Number of buffers must be greater than one
+awt.14D=Buffer capabilities should support flipping
+awt.14E=Component should be displayable
+awt.14F=invalid focus traversal key identifier
+awt.150=no parent
+awt.151=component must be showing on the screen to determine its location
+awt.152=Invalid number of copies
+awt.153=Invalid value for maxPage
+awt.154=Invalid value for minPage
+awt.155=Invalid value for fromPage
+awt.156=Invalid value for toPage
+awt.157=Invalid value for pageRanges
+awt.158=Invalid value for destination
+awt.159=Invalid value for dialog
+awt.15A=Invalid value for defaultSelection
+awt.15B=Invalid value for multipleDocumentHandling
+awt.15C=Invalid value for attribute sides
 
 awt.err.00=file dialog {0} error!
 awt.err.01=error: {0}



Mime
View raw message