harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r470404 [2/2] - in /incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common: java/awt/color/ java/awt/datatransfer/ java/awt/dnd/ java/awt/event/ java/awt/font/ org/apache/harmony/awt/internal/nls/
Date Thu, 02 Nov 2006 16:15:36 GMT
Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/KeyEvent.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/KeyEvent.java?view=diff&rev=470404&r1=470403&r2=470404
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/KeyEvent.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/KeyEvent.java Thu Nov  2 08:15:32 2006
@@ -25,6 +25,8 @@
 import java.lang.reflect.Field;
 import java.lang.reflect.Modifier;
 
+import org.apache.harmony.awt.internal.nls.Messages;
+
 public class KeyEvent extends InputEvent {
 
     private static final long serialVersionUID = -2352130953028126954L;
@@ -438,36 +440,36 @@
     }
 
     static String getKeyModifiersExText(int modifiersEx) {
-        String text = "";
+        String text = ""; //$NON-NLS-1$
 
         if ((modifiersEx & InputEvent.META_DOWN_MASK) != 0) {
-            text += Toolkit.getProperty("AWT.meta", "Meta");
+            text += Toolkit.getProperty("AWT.meta", "Meta"); //$NON-NLS-1$ //$NON-NLS-2$
         }
         if ((modifiersEx & InputEvent.CTRL_DOWN_MASK) != 0) {
-            text += ((text.length() > 0) ? "+" : "") +
-                    Toolkit.getProperty("AWT.control", "Ctrl");
+            text += ((text.length() > 0) ? "+" : "") + //$NON-NLS-1$ //$NON-NLS-2$
+                    Toolkit.getProperty("AWT.control", "Ctrl"); //$NON-NLS-1$ //$NON-NLS-2$
         }
         if ((modifiersEx & InputEvent.ALT_DOWN_MASK) != 0) {
-            text += ((text.length() > 0) ? "+" : "") +
-                    Toolkit.getProperty("AWT.alt", "Alt");
+            text += ((text.length() > 0) ? "+" : "") + //$NON-NLS-1$ //$NON-NLS-2$
+                    Toolkit.getProperty("AWT.alt", "Alt"); //$NON-NLS-1$ //$NON-NLS-2$
         }
         if ((modifiersEx & InputEvent.SHIFT_DOWN_MASK) != 0) {
-            text += ((text.length() > 0) ? "+" : "") +
-                    Toolkit.getProperty("AWT.shift", "Shift");
+            text += ((text.length() > 0) ? "+" : "") + //$NON-NLS-1$ //$NON-NLS-2$
+                    Toolkit.getProperty("AWT.shift", "Shift"); //$NON-NLS-1$ //$NON-NLS-2$
         }
         if ((modifiersEx & InputEvent.ALT_GRAPH_DOWN_MASK) != 0) {
-            text += ((text.length() > 0) ? "+" : "") +
-                    Toolkit.getProperty("AWT.altGraph", "Alt Graph");
+            text += ((text.length() > 0) ? "+" : "") + //$NON-NLS-1$ //$NON-NLS-2$
+                    Toolkit.getProperty("AWT.altGraph", "Alt Graph"); //$NON-NLS-1$ //$NON-NLS-2$
         }
 
         return text;
     }
 
     public static String getKeyText(int keyCode) {
-        String[] rawName = getPublicStaticFinalIntFieldName(keyCode, "VK_".length());
+        String[] rawName = getPublicStaticFinalIntFieldName(keyCode, "VK_".length()); //$NON-NLS-1$
 
         if ((rawName == null) || (rawName.length == 0)) {
-            return ("Unknown keyCode: " + (keyCode >= 0 ? "0x" : "-0x") +
+            return ("Unknown keyCode: " + (keyCode >= 0 ? "0x" : "-0x") + //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
                     Integer.toHexString(Math.abs(keyCode)));
         }
 
@@ -478,7 +480,7 @@
     }
 
     private static String getDefaultName(String[] rawName) {
-        String name = "";
+        String name = ""; //$NON-NLS-1$
 
         for (int i = 0; true; i++) {
             String part = rawName[i];
@@ -489,7 +491,7 @@
             if (i == (rawName.length - 1)) {
                 break;
             }
-            name += " ";
+            name += " "; //$NON-NLS-1$
         }
 
         return name;
@@ -505,7 +507,7 @@
                     part.substring(1).toLowerCase();
         }
 
-        return ("AWT." + name);
+        return ("AWT." + name); //$NON-NLS-1$
     }
 
     private static String[] getPublicStaticFinalIntFieldName(int value, int prefixLength) {
@@ -516,12 +518,12 @@
                 Class<?> ssalc = field.getType();
                 int modifiers = field.getModifiers();
 
-                if (ssalc.isPrimitive() && ssalc.getName().equals("int") &&
+                if (ssalc.isPrimitive() && ssalc.getName().equals("int") && //$NON-NLS-1$
                         Modifier.isFinal(modifiers) && Modifier.isPublic(modifiers) &&
                         Modifier.isStatic(modifiers))
                 {
                     if (field.getInt(null) == value){
-                        return field.getName().substring(prefixLength).split("_");
+                        return field.getName().substring(prefixLength).split("_"); //$NON-NLS-1$
                     }
                 }
             }
@@ -554,12 +556,12 @@
 
         if (id == KEY_TYPED) {
             if (keyCode != VK_UNDEFINED) {
-                throw new IllegalArgumentException(
-                    "Invalid keyCode for KEY_TYPED event, must be VK_UNDEFINED");
+                // awt.191=Invalid keyCode for KEY_TYPED event, must be VK_UNDEFINED
+                throw new IllegalArgumentException(Messages.getString("awt.191")); //$NON-NLS-1$
             }
             if (keyChar == CHAR_UNDEFINED) {
-                throw new IllegalArgumentException(
-                    "Invalid keyChar for KEY_TYPED event, can't be CHAR_UNDEFINED");
+                // awt.192=Invalid keyChar for KEY_TYPED event, can't be CHAR_UNDEFINED
+                throw new IllegalArgumentException(Messages.getString("awt.192")); //$NON-NLS-1$
             }
         }
 
@@ -617,53 +619,53 @@
         String locString = null;
         String paramString = null;
         String keyCharString = (keyChar == '\n') ?
-                keyCharString = getKeyText(VK_ENTER) : "'" + keyChar + "'";
+                keyCharString = getKeyText(VK_ENTER) : "'" + keyChar + "'"; //$NON-NLS-1$ //$NON-NLS-2$
 
         switch (id) {
         case KEY_PRESSED:
-            idString = "KEY_PRESSED";
+            idString = "KEY_PRESSED"; //$NON-NLS-1$
             break;
         case KEY_RELEASED:
-            idString = "KEY_RELEASED";
+            idString = "KEY_RELEASED"; //$NON-NLS-1$
             break;
         case KEY_TYPED:
-            idString = "KEY_TYPED";
+            idString = "KEY_TYPED"; //$NON-NLS-1$
             break;
         default:
-            idString = "unknown type";
+            idString = "unknown type"; //$NON-NLS-1$
         }
 
         switch(keyLocation){
         case KEY_LOCATION_STANDARD:
-            locString = "KEY_LOCATION_STANDARD";
+            locString = "KEY_LOCATION_STANDARD"; //$NON-NLS-1$
             break;
         case KEY_LOCATION_LEFT:
-            locString = "KEY_LOCATION_LEFT";
+            locString = "KEY_LOCATION_LEFT"; //$NON-NLS-1$
             break;
         case KEY_LOCATION_RIGHT:
-            locString = "KEY_LOCATION_RIGHT";
+            locString = "KEY_LOCATION_RIGHT"; //$NON-NLS-1$
             break;
         case KEY_LOCATION_NUMPAD:
-            locString = "KEY_LOCATION_NUMPAD";
+            locString = "KEY_LOCATION_NUMPAD"; //$NON-NLS-1$
             break;
         case KEY_LOCATION_UNKNOWN:
-            locString = "KEY_LOCATION_UNKNOWN";
+            locString = "KEY_LOCATION_UNKNOWN"; //$NON-NLS-1$
             break;
         default:
-            locString = "unknown type";
+            locString = "unknown type"; //$NON-NLS-1$
         }
 
-        paramString = idString + ",keyCode=" + keyCode;
+        paramString = idString + ",keyCode=" + keyCode; //$NON-NLS-1$
         if (isActionKey()) {
-            paramString += "," + getKeyText(keyCode);
+            paramString += "," + getKeyText(keyCode); //$NON-NLS-1$
         } else {
-            paramString += ",keyChar=" + keyCharString;
+            paramString += ",keyChar=" + keyCharString; //$NON-NLS-1$
         }
         if (getModifiersEx() > 0) {
-            paramString += ",modifiers=" + getModifiersExText(getModifiersEx()) +
-                    ",extModifiers=" + getModifiersExText(getModifiersEx());
+            paramString += ",modifiers=" + getModifiersExText(getModifiersEx()) + //$NON-NLS-1$
+                    ",extModifiers=" + getModifiersExText(getModifiersEx()); //$NON-NLS-1$
         }
-        paramString += ",keyLocation=" + locString;
+        paramString += ",keyLocation=" + locString; //$NON-NLS-1$
 
         return paramString;
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/MouseEvent.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/MouseEvent.java?view=diff&rev=470404&r1=470403&r2=470404
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/MouseEvent.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/MouseEvent.java Thu Nov  2 08:15:32 2006
@@ -24,6 +24,8 @@
 import java.awt.Point;
 import java.awt.Toolkit;
 
+import org.apache.harmony.awt.internal.nls.Messages;
+
 public class MouseEvent extends InputEvent {
 
     private static final long serialVersionUID = -991214153494842848L;
@@ -68,16 +70,16 @@
 
     static String addMouseModifiersExText(String text, int modifiersEx) {
         if ((modifiersEx & InputEvent.BUTTON1_DOWN_MASK) != 0) {
-            text += ((text.length() > 0) ? "+" : "") +
-                    Toolkit.getProperty("AWT.button1", "Button1");
+            text += ((text.length() > 0) ? "+" : "") + //$NON-NLS-1$ //$NON-NLS-2$
+                    Toolkit.getProperty("AWT.button1", "Button1"); //$NON-NLS-1$ //$NON-NLS-2$
         }
         if ((modifiersEx & InputEvent.BUTTON2_DOWN_MASK) != 0) {
-            text += ((text.length() > 0) ? "+" : "") +
-                    Toolkit.getProperty("AWT.button2", "Button2");
+            text += ((text.length() > 0) ? "+" : "") + //$NON-NLS-1$ //$NON-NLS-2$
+                    Toolkit.getProperty("AWT.button2", "Button2"); //$NON-NLS-1$ //$NON-NLS-2$
         }
         if ((modifiersEx & InputEvent.BUTTON3_DOWN_MASK) != 0) {
-            text += ((text.length() > 0) ? "+" : "") +
-                    Toolkit.getProperty("AWT.button3", "Button3");
+            text += ((text.length() > 0) ? "+" : "") + //$NON-NLS-1$ //$NON-NLS-2$
+                    Toolkit.getProperty("AWT.button3", "Button3"); //$NON-NLS-1$ //$NON-NLS-2$
         }
 
         return text;
@@ -97,7 +99,8 @@
 
         if ((button != NOBUTTON) && (button != BUTTON1) &&
                 (button != BUTTON2) && (button != BUTTON3)) {
-            throw new IllegalArgumentException("Invalid button value");
+            // awt.18B=Invalid button value
+            throw new IllegalArgumentException(Messages.getString("awt.18B")); //$NON-NLS-1$
         }
 
         this.popupTrigger = popupTrigger;
@@ -153,41 +156,41 @@
 
         switch (id) {
         case MOUSE_MOVED:
-            idString = "MOUSE_MOVED";
+            idString = "MOUSE_MOVED"; //$NON-NLS-1$
             break;
         case MOUSE_CLICKED:
-            idString = "MOUSE_CLICKED";
+            idString = "MOUSE_CLICKED"; //$NON-NLS-1$
             break;
         case MOUSE_PRESSED:
-            idString = "MOUSE_PRESSED";
+            idString = "MOUSE_PRESSED"; //$NON-NLS-1$
             break;
         case MOUSE_RELEASED:
-            idString = "MOUSE_RELEASED";
+            idString = "MOUSE_RELEASED"; //$NON-NLS-1$
             break;
         case MOUSE_DRAGGED:
-            idString = "MOUSE_DRAGGED";
+            idString = "MOUSE_DRAGGED"; //$NON-NLS-1$
             break;
         case MOUSE_ENTERED:
-            idString = "MOUSE_ENTERED";
+            idString = "MOUSE_ENTERED"; //$NON-NLS-1$
             break;
         case MOUSE_EXITED:
-            idString = "MOUSE_EXITED";
+            idString = "MOUSE_EXITED"; //$NON-NLS-1$
             break;
         case MOUSE_WHEEL:
-            idString = "MOUSE_WHEEL";
+            idString = "MOUSE_WHEEL"; //$NON-NLS-1$
             break;
         default:
-            idString = "unknown type";
+            idString = "unknown type"; //$NON-NLS-1$
         }
 
-        paramString = idString + ",(" + getX() + "," + getY() + ")" +
-                ",button=" + button;
+        paramString = idString + ",(" + getX() + "," + getY() + ")" + //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+                ",button=" + button; //$NON-NLS-1$
         if (getModifiersEx() > 0) {
             paramString += 
-                    ",modifiers=" + getModifiersExText(getModifiersEx()) +
-                    ",extModifiers=" + getModifiersExText(getModifiersEx());
+                    ",modifiers=" + getModifiersExText(getModifiersEx()) + //$NON-NLS-1$
+                    ",extModifiers=" + getModifiersExText(getModifiersEx()); //$NON-NLS-1$
         }
-        paramString += ",clickCount=" + getClickCount();
+        paramString += ",clickCount=" + getClickCount(); //$NON-NLS-1$
 
         return paramString;
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/MouseWheelEvent.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/MouseWheelEvent.java?view=diff&rev=470404&r1=470403&r2=470404
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/MouseWheelEvent.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/MouseWheelEvent.java Thu Nov  2 08:15:32 2006
@@ -78,18 +78,18 @@
 
         switch (scrollType) {
         case WHEEL_UNIT_SCROLL:
-            typeString = "WHEEL_UNIT_SCROLL";
+            typeString = "WHEEL_UNIT_SCROLL"; //$NON-NLS-1$
             break;
         case WHEEL_BLOCK_SCROLL:
-            typeString = "WHEEL_BLOCK_SCROLL";
+            typeString = "WHEEL_BLOCK_SCROLL"; //$NON-NLS-1$
             break;
         default:
-            typeString = "unknown type";
+            typeString = "unknown type"; //$NON-NLS-1$
         }
 
-        paramString += ",scrollType=" + typeString +
-                ",scrollAmount=" + scrollAmount + 
-                ",wheelRotation=" + wheelRotation;
+        paramString += ",scrollType=" + typeString + //$NON-NLS-1$
+                ",scrollAmount=" + scrollAmount +  //$NON-NLS-1$
+                ",wheelRotation=" + wheelRotation; //$NON-NLS-1$
 
         return paramString;
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/PaintEvent.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/PaintEvent.java?view=diff&rev=470404&r1=470403&r2=470404
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/PaintEvent.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/PaintEvent.java Thu Nov  2 08:15:32 2006
@@ -65,16 +65,16 @@
 
         switch (id) {
         case PAINT:
-            typeString = "PAINT";
+            typeString = "PAINT"; //$NON-NLS-1$
             break;
         case UPDATE:
-            typeString = "UPDATE";
+            typeString = "UPDATE"; //$NON-NLS-1$
             break;
         default:
-            typeString = "unknown type";
+            typeString = "unknown type"; //$NON-NLS-1$
         }
 
-        return typeString + ",updateRect=" + updateRect;
+        return typeString + ",updateRect=" + updateRect; //$NON-NLS-1$
     }
 
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/TextEvent.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/TextEvent.java?view=diff&rev=470404&r1=470403&r2=470404
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/TextEvent.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/TextEvent.java Thu Nov  2 08:15:32 2006
@@ -47,7 +47,7 @@
          */
 
         return (id == TEXT_VALUE_CHANGED) ? 
-                "TEXT_VALUE_CHANGED" : "unknown type";
+                "TEXT_VALUE_CHANGED" : "unknown type"; //$NON-NLS-1$ //$NON-NLS-2$
     }
 
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/WindowEvent.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/WindowEvent.java?view=diff&rev=470404&r1=470403&r2=470404
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/WindowEvent.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/event/WindowEvent.java Thu Nov  2 08:15:32 2006
@@ -106,41 +106,41 @@
 
         switch (id) {
         case WINDOW_OPENED:
-            typeString = "WINDOW_OPENED";
+            typeString = "WINDOW_OPENED"; //$NON-NLS-1$
             break;
         case WINDOW_CLOSING:
-            typeString = "WINDOW_CLOSING";
+            typeString = "WINDOW_CLOSING"; //$NON-NLS-1$
             break;
         case WINDOW_CLOSED:
-            typeString = "WINDOW_CLOSED";
+            typeString = "WINDOW_CLOSED"; //$NON-NLS-1$
             break;
         case WINDOW_ICONIFIED:
-            typeString = "WINDOW_ICONIFIED";
+            typeString = "WINDOW_ICONIFIED"; //$NON-NLS-1$
             break;
         case WINDOW_DEICONIFIED:
-            typeString = "WINDOW_DEICONIFIED";
+            typeString = "WINDOW_DEICONIFIED"; //$NON-NLS-1$
             break;
         case WINDOW_ACTIVATED:
-            typeString = "WINDOW_ACTIVATED";
+            typeString = "WINDOW_ACTIVATED"; //$NON-NLS-1$
             break;
         case WINDOW_DEACTIVATED:
-            typeString = "WINDOW_DEACTIVATED";
+            typeString = "WINDOW_DEACTIVATED"; //$NON-NLS-1$
             break;
         case WINDOW_GAINED_FOCUS:
-            typeString = "WINDOW_GAINED_FOCUS";
+            typeString = "WINDOW_GAINED_FOCUS"; //$NON-NLS-1$
             break;
         case WINDOW_LOST_FOCUS:
-            typeString = "WINDOW_LOST_FOCUS";
+            typeString = "WINDOW_LOST_FOCUS"; //$NON-NLS-1$
             break;
         case WINDOW_STATE_CHANGED:
-            typeString = "WINDOW_STATE_CHANGED";
+            typeString = "WINDOW_STATE_CHANGED"; //$NON-NLS-1$
             break;
         default:
-            typeString = "unknown type";
+            typeString = "unknown type"; //$NON-NLS-1$
         }
 
-        return typeString + ",opposite=" + oppositeWindow +
-                ",oldState=" + oldState + ",newState=" + newState;
+        return typeString + ",opposite=" + oppositeWindow + //$NON-NLS-1$
+                ",oldState=" + oldState + ",newState=" + newState; //$NON-NLS-1$ //$NON-NLS-2$
     }
 
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/GlyphJustificationInfo.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/GlyphJustificationInfo.java?view=diff&rev=470404&r1=470403&r2=470404
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/GlyphJustificationInfo.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/GlyphJustificationInfo.java Thu Nov  2 08:15:32 2006
@@ -20,6 +20,8 @@
  */
 package java.awt.font;
 
+import org.apache.harmony.awt.internal.nls.Messages;
+
 public final class GlyphJustificationInfo {
 
     public static final int PRIORITY_KASHIDA = 0;
@@ -53,42 +55,44 @@
             int shrinkPriority, float shrinkLeftLimit, float shrinkRightLimit) {
 
         if (weight < 0) {
-            throw new IllegalArgumentException("weight must be a " + "positive number");
+            // awt.19C=weight must be a positive number
+            throw new IllegalArgumentException(Messages.getString("awt.19C")); //$NON-NLS-1$
         }
         this.weight = weight;
 
         if (growLeftLimit < 0) {
-            throw new IllegalArgumentException("growLeftLimit must be a " + "positive number");
+            // awt.19D=growLeftLimit must be a positive number
+            throw new IllegalArgumentException(Messages.getString("awt.19D")); //$NON-NLS-1$
         }
         this.growLeftLimit = growLeftLimit;
 
         if (growRightLimit < 0) {
-            throw new IllegalArgumentException("growRightLimit must be a " + "positive number");
+            // awt.19E=growRightLimit must be a positive number
+            throw new IllegalArgumentException(Messages.getString("awt.19E")); //$NON-NLS-1$
         }
         this.growRightLimit = growRightLimit;
 
         if ((shrinkPriority < 0) || (shrinkPriority > PRIORITY_NONE)) {
-            throw new IllegalArgumentException("incorrect value for "
-                    + "shrinkPriority, more than PRIORITY_NONE or less than "
-                    + "PRIORITY_KASHIDA value");
+            // awt.19F=incorrect value for shrinkPriority, more than PRIORITY_NONE or less than PRIORITY_KASHIDA value
+            throw new IllegalArgumentException(Messages.getString("awt.19F")); //$NON-NLS-1$
         }
         this.shrinkPriority = shrinkPriority;
 
         if ((growPriority < 0) || (growPriority > PRIORITY_NONE)) {
-            throw new IllegalArgumentException("incorrect value for "
-                    + "growPriority, more than PRIORITY_NONE or less than "
-                    + "PRIORITY_KASHIDA value");
+            // awt.200=incorrect value for growPriority, more than PRIORITY_NONE or less than PRIORITY_KASHIDA value
+            throw new IllegalArgumentException(Messages.getString("awt.200")); //$NON-NLS-1$
         }
         this.growPriority = growPriority;
 
         if (shrinkLeftLimit < 0) {
-            throw new IllegalArgumentException("shrinkLeftLimit must be a " + "positive number");
+            // awt.201=shrinkLeftLimit must be a positive number
+            throw new IllegalArgumentException(Messages.getString("awt.201")); //$NON-NLS-1$
         }
         this.shrinkLeftLimit = shrinkLeftLimit;
 
         if (shrinkRightLimit < 0) {
-            throw new IllegalArgumentException("shrinkRightLimit must be a "
-                    + "positive number");
+            // awt.202=shrinkRightLimit must be a positive number
+            throw new IllegalArgumentException(Messages.getString("awt.202")); //$NON-NLS-1$
         }
         this.shrinkRightLimit = shrinkRightLimit;
 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/GraphicAttribute.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/GraphicAttribute.java?view=diff&rev=470404&r1=470403&r2=470404
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/GraphicAttribute.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/GraphicAttribute.java Thu Nov  2 08:15:32 2006
@@ -23,6 +23,8 @@
 import java.awt.Graphics2D;
 import java.awt.geom.Rectangle2D;
 
+import org.apache.harmony.awt.internal.nls.Messages;
+
 public abstract class GraphicAttribute {
 
     public static final int TOP_ALIGNMENT = -1;
@@ -40,7 +42,8 @@
 
     protected GraphicAttribute(int align) {
         if ((align < BOTTOM_ALIGNMENT) || (align > HANGING_BASELINE)) {
-            throw new IllegalArgumentException("illigal alignment argument");
+            // awt.198=Illegal alignment argument
+            throw new IllegalArgumentException(Messages.getString("awt.198")); //$NON-NLS-1$
         }
         this.alignment = align;
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/LineBreakMeasurer.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/LineBreakMeasurer.java?view=diff&rev=470404&r1=470403&r2=470404
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/LineBreakMeasurer.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/LineBreakMeasurer.java Thu Nov  2 08:15:32 2006
@@ -24,6 +24,8 @@
 import java.text.AttributedCharacterIterator;
 import java.text.BreakIterator;
 
+import org.apache.harmony.awt.internal.nls.Messages;
+
 public final class LineBreakMeasurer {
     private TextMeasurer tm = null;
     private BreakIterator bi = null;
@@ -93,9 +95,8 @@
 
     public int nextOffset(float wrappingWidth, int offsetLimit, boolean requireNextWord) {
         if (offsetLimit <= position) {
-            throw new IllegalArgumentException(
-                    "Offset limit should be greater than current position."
-            );
+            // awt.203=Offset limit should be greater than current position. 
+            throw new IllegalArgumentException(Messages.getString("awt.203")); //$NON-NLS-1$
         }
 
         if (position == maxpos) {
@@ -127,7 +128,8 @@
 
     public void setPosition(int pos) {
         if (tm.aci.getBeginIndex() > pos || maxpos < pos) {
-            throw new IllegalArgumentException("Index is out of range");
+            // awt.33=index is out of range
+            throw new IllegalArgumentException(Messages.getString("awt.33")); //$NON-NLS-1$
         }
         position = pos;
     }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/NumericShaper.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/NumericShaper.java?view=diff&rev=470404&r1=470403&r2=470404
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/NumericShaper.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/NumericShaper.java Thu Nov  2 08:15:32 2006
@@ -23,6 +23,7 @@
 import java.io.IOException;
 import java.io.Serializable;
 
+import org.apache.harmony.awt.internal.nls.Messages;
 import org.apache.harmony.misc.HashCode;
 
 
@@ -197,25 +198,25 @@
 
     // Set of context names used in toString method
     private final String[] contexts = {
-            "EUROPEAN",
-            "ARABIC",
-            "EASTERN_ARABIC",
-            "DEVANAGARI",
-            "BENGALI",
-            "GURMUKHI",
-            "GUJARATI",
-            "ORIYA",
-            "TAMIL",
-            "TELUGU",
-            "KANNADA",
-            "MALAYALAM",
-            "THAI",
-            "LAO",
-            "TIBETAN",
-            "MYANMAR",
-            "ETHIOPIC",
-            "KHMER",
-            "MONGOLIAN"
+            "EUROPEAN", //$NON-NLS-1$
+            "ARABIC", //$NON-NLS-1$
+            "EASTERN_ARABIC", //$NON-NLS-1$
+            "DEVANAGARI", //$NON-NLS-1$
+            "BENGALI", //$NON-NLS-1$
+            "GURMUKHI", //$NON-NLS-1$
+            "GUJARATI", //$NON-NLS-1$
+            "ORIYA", //$NON-NLS-1$
+            "TAMIL", //$NON-NLS-1$
+            "TELUGU", //$NON-NLS-1$
+            "KANNADA", //$NON-NLS-1$
+            "MALAYALAM", //$NON-NLS-1$
+            "THAI", //$NON-NLS-1$
+            "LAO", //$NON-NLS-1$
+            "TIBETAN", //$NON-NLS-1$
+            "MYANMAR", //$NON-NLS-1$
+            "ETHIOPIC", //$NON-NLS-1$
+            "KHMER", //$NON-NLS-1$
+            "MONGOLIAN" //$NON-NLS-1$
     };
 
     /*
@@ -390,8 +391,9 @@
      */
     private int getIndexFromRange(int range){
         if (range == 0){
-            throw new IllegalArgumentException("Illegal range argument value:"+
-                    range);
+            // awt.199=Illegal range argument value: {0}
+            throw new IllegalArgumentException(Messages.getString("awt.199", //$NON-NLS-1$
+                    range));
         }
 
         int index = 0;
@@ -402,8 +404,9 @@
             index++;
         }
 
-        throw new IllegalArgumentException("Illegal range argument value:" + 
-                range);
+        // awt.199=Illegal range argument value: {0}
+        throw new IllegalArgumentException(Messages.getString("awt.199",  //$NON-NLS-1$
+                range));
 
     }
 
@@ -415,8 +418,9 @@
      */
     private int getRangeFromIndex(int index){
         if (index < 0 || index >= MAX_INDEX){
-            throw new IllegalArgumentException("Illegal range argument value:"+
-                    index);
+            // awt.199=Illegal range argument value: {0}
+            throw new IllegalArgumentException(Messages.getString("awt.199", //$NON-NLS-1$
+                    index));
         }
 
         return 1 << index;
@@ -476,15 +480,15 @@
          */
         StringBuffer sb = new StringBuffer(super.toString());
 
-        sb.append("[contextual:");
+        sb.append("[contextual:"); //$NON-NLS-1$
         sb.append(fContextual);
 
         if (fContextual){
-            sb.append(", context:");
+            sb.append(", context:"); //$NON-NLS-1$
             sb.append(contexts[fDefaultContextIndex]);
         }
 
-        sb.append(", range(s): ");
+        sb.append(", range(s): "); //$NON-NLS-1$
         if (fContextual) {
             int index = 0;
             boolean isFirst = true;
@@ -493,7 +497,7 @@
                     if (isFirst){
                         isFirst = false;
                     } else {
-                        sb.append(", ");
+                        sb.append(", "); //$NON-NLS-1$
                     }
                     sb.append(contexts[index]);
                 }
@@ -502,7 +506,7 @@
         } else {
             sb.append(contexts[fSingleRangeIndex]);
         }
-        sb.append("]");
+        sb.append("]"); //$NON-NLS-1$
 
         return sb.toString();
     }
@@ -536,13 +540,13 @@
         int len = text.length;
 
         if ((start < 0) || ((start + count) > len)) {
-            throw new IndexOutOfBoundsException(
-                    "start or count arguments are out of text range");
+            // awt.19A=start or count arguments are out of text range
+            throw new IndexOutOfBoundsException(Messages.getString("awt.19A")); //$NON-NLS-1$
         }
 
         if (count < 0) {
-            throw new IllegalArgumentException(
-                    "count argument must be positive");
+            // awt.19B=count argument must be positive
+            throw new IllegalArgumentException(Messages.getString("awt.19B")); //$NON-NLS-1$
         }
 
         if (isContextual()){
@@ -556,13 +560,13 @@
         int len = text.length;
 
         if ((start < 0) || ((start + count) > len)) {
-            throw new IndexOutOfBoundsException(
-                    "start or count arguments are out of text range");
+            // awt.19A=start or count arguments are out of text range
+            throw new IndexOutOfBoundsException(Messages.getString("awt.19A")); //$NON-NLS-1$
         }
 
         if (count < 0) {
-            throw new IllegalArgumentException(
-                    "count argument must be positive");
+            // awt.19B=count argument must be positive
+            throw new IllegalArgumentException(Messages.getString("awt.19B")); //$NON-NLS-1$
         }
 
         if (isContextual()){

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/TextAttribute.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/TextAttribute.java?view=diff&rev=470404&r1=470403&r2=470404
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/TextAttribute.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/TextAttribute.java Thu Nov  2 08:15:32 2006
@@ -25,6 +25,8 @@
 import java.util.HashMap;
 import java.util.Map;
 
+import org.apache.harmony.awt.internal.nls.Messages;
+
 public final class TextAttribute extends Attribute {
     private static final long serialVersionUID = 7744112784117861702L;
 
@@ -42,66 +44,67 @@
         if (result != null) {
             return result;
         }
-        throw new InvalidObjectException("Unknown attribute name");
+        // awt.194=Unknown attribute name
+        throw new InvalidObjectException(Messages.getString("awt.194")); //$NON-NLS-1$
     }
 
-    public static final TextAttribute BACKGROUND = new TextAttribute("background");
+    public static final TextAttribute BACKGROUND = new TextAttribute("background"); //$NON-NLS-1$
 
-    public static final TextAttribute BIDI_EMBEDDING = new TextAttribute("bidi_embedding");
+    public static final TextAttribute BIDI_EMBEDDING = new TextAttribute("bidi_embedding"); //$NON-NLS-1$
 
-    public static final TextAttribute CHAR_REPLACEMENT = new TextAttribute("char_replacement");
+    public static final TextAttribute CHAR_REPLACEMENT = new TextAttribute("char_replacement"); //$NON-NLS-1$
 
-    public static final TextAttribute FAMILY = new TextAttribute("family");
+    public static final TextAttribute FAMILY = new TextAttribute("family"); //$NON-NLS-1$
 
-    public static final TextAttribute FONT = new TextAttribute("font");
+    public static final TextAttribute FONT = new TextAttribute("font"); //$NON-NLS-1$
 
-    public static final TextAttribute FOREGROUND = new TextAttribute("foreground");
+    public static final TextAttribute FOREGROUND = new TextAttribute("foreground"); //$NON-NLS-1$
 
     public static final TextAttribute INPUT_METHOD_HIGHLIGHT = new TextAttribute(
-            "input method highlight");
+            "input method highlight"); //$NON-NLS-1$
 
     public static final TextAttribute INPUT_METHOD_UNDERLINE = new TextAttribute(
-            "input method underline");
+            "input method underline"); //$NON-NLS-1$
 
-    public static final TextAttribute JUSTIFICATION = new TextAttribute("justification");
+    public static final TextAttribute JUSTIFICATION = new TextAttribute("justification"); //$NON-NLS-1$
 
     public static final Float JUSTIFICATION_FULL = new Float(1.0f);
 
     public static final Float JUSTIFICATION_NONE = new Float(0.0f);
 
-    public static final TextAttribute NUMERIC_SHAPING = new TextAttribute("numeric_shaping");
+    public static final TextAttribute NUMERIC_SHAPING = new TextAttribute("numeric_shaping"); //$NON-NLS-1$
 
-    public static final TextAttribute POSTURE = new TextAttribute("posture");
+    public static final TextAttribute POSTURE = new TextAttribute("posture"); //$NON-NLS-1$
 
     public static final Float POSTURE_REGULAR = new Float(0.0f);
 
     public static final Float POSTURE_OBLIQUE = new Float(0.20f);
 
-    public static final TextAttribute RUN_DIRECTION = new TextAttribute("run_direction");
+    public static final TextAttribute RUN_DIRECTION = new TextAttribute("run_direction"); //$NON-NLS-1$
 
     public static final Boolean RUN_DIRECTION_LTR = new Boolean(false);
 
     public static final Boolean RUN_DIRECTION_RTL = new Boolean(true);
 
-    public static final TextAttribute SIZE = new TextAttribute("size");
+    public static final TextAttribute SIZE = new TextAttribute("size"); //$NON-NLS-1$
 
-    public static final TextAttribute STRIKETHROUGH = new TextAttribute("strikethrough");
+    public static final TextAttribute STRIKETHROUGH = new TextAttribute("strikethrough"); //$NON-NLS-1$
 
     public static final Boolean STRIKETHROUGH_ON = new Boolean(true);
 
-    public static final TextAttribute SUPERSCRIPT = new TextAttribute("superscript");
+    public static final TextAttribute SUPERSCRIPT = new TextAttribute("superscript"); //$NON-NLS-1$
 
     public static final Integer SUPERSCRIPT_SUB = new Integer(-1);
 
     public static final Integer SUPERSCRIPT_SUPER = new Integer(1);
 
-    public static final TextAttribute SWAP_COLORS = new TextAttribute("swap_colors");
+    public static final TextAttribute SWAP_COLORS = new TextAttribute("swap_colors"); //$NON-NLS-1$
 
     public static final Boolean SWAP_COLORS_ON = new Boolean(true);
 
-    public static final TextAttribute TRANSFORM = new TextAttribute("transform");
+    public static final TextAttribute TRANSFORM = new TextAttribute("transform"); //$NON-NLS-1$
 
-    public static final TextAttribute UNDERLINE = new TextAttribute("underline");
+    public static final TextAttribute UNDERLINE = new TextAttribute("underline"); //$NON-NLS-1$
 
     public static final Integer UNDERLINE_ON = new Integer(0);
 
@@ -115,7 +118,7 @@
 
     public static final Integer UNDERLINE_LOW_DASHED = new Integer(5);
 
-    public static final TextAttribute WEIGHT = new TextAttribute("weight");
+    public static final TextAttribute WEIGHT = new TextAttribute("weight"); //$NON-NLS-1$
 
     public static final Float WEIGHT_EXTRA_LIGHT = new Float(0.5f);
 
@@ -139,7 +142,7 @@
 
     public static final Float WEIGHT_ULTRABOLD = new Float(2.75f);
 
-    public static final TextAttribute WIDTH = new TextAttribute("width");
+    public static final TextAttribute WIDTH = new TextAttribute("width"); //$NON-NLS-1$
 
     public static final Float WIDTH_CONDENSED = new Float(0.75f);
 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/TextHitInfo.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/TextHitInfo.java?view=diff&rev=470404&r1=470403&r2=470404
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/TextHitInfo.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/TextHitInfo.java Thu Nov  2 08:15:32 2006
@@ -36,8 +36,8 @@
     @Override
     public String toString() {
         return new String(
-                "TextHitInfo[" + charIdx + ", " +
-                (isTrailing?"Trailing":"Leading") + "]"
+                "TextHitInfo[" + charIdx + ", " + //$NON-NLS-1$ //$NON-NLS-2$
+                (isTrailing?"Trailing":"Leading") + "]" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
         );
     }
 

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/TextLayout.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/TextLayout.java?view=diff&rev=470404&r1=470403&r2=470404
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/TextLayout.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/TextLayout.java Thu Nov  2 08:15:32 2006
@@ -72,14 +72,17 @@
 
     public TextLayout(String string, Font font, FontRenderContext frc) {
         if (string == null){
+            // awt.01='{0}' parameter is null
             throw new IllegalArgumentException(Messages.getString("awt.01", "string")); //$NON-NLS-1$ //$NON-NLS-2$
         }
         
         if (font == null){
+            // awt.01='{0}' parameter is null
             throw new IllegalArgumentException(Messages.getString("awt.01", "font")); //$NON-NLS-1$ //$NON-NLS-2$
         }
 
         if (string.length() == 0){
+            // awt.02='{0}' parameter has zero length
             throw new IllegalArgumentException(Messages.getString("awt.02", "string")); //$NON-NLS-1$ //$NON-NLS-2$
         }
 
@@ -94,14 +97,17 @@
             Map<? extends java.text.AttributedCharacterIterator.Attribute, ?> attributes,
             FontRenderContext frc ) {
         if (string == null){
+            // awt.01='{0}' parameter is null
             throw new IllegalArgumentException(Messages.getString("awt.01", "string")); //$NON-NLS-1$ //$NON-NLS-2$
         }
         
         if (attributes == null){
+            // awt.01='{0}' parameter is null
             throw new IllegalArgumentException(Messages.getString("awt.01", "attributes")); //$NON-NLS-1$ //$NON-NLS-2$
         }
         
         if (string.length() == 0){
+            // awt.02='{0}' parameter has zero length
             throw new IllegalArgumentException(Messages.getString("awt.02", "string")); //$NON-NLS-1$ //$NON-NLS-2$
         }
         
@@ -114,10 +120,12 @@
 
     public TextLayout(AttributedCharacterIterator text, FontRenderContext frc) {
         if (text == null){
+            // awt.03='{0}' iterator parameter is null
             throw new IllegalArgumentException(Messages.getString("awt.03", "text")); //$NON-NLS-1$ //$NON-NLS-2$
         }
         
         if (text.getBeginIndex() == text.getEndIndex()){
+            // awt.04='{0}' iterator parameter has zero length
             throw new IllegalArgumentException(Messages.getString("awt.04", "text")); //$NON-NLS-1$ //$NON-NLS-2$
         }
 
@@ -240,7 +248,8 @@
 
     public Shape[] getCaretShapes(int offset, Rectangle2D bounds, TextLayout.CaretPolicy policy) {
         if (offset < 0 || offset > breaker.getCharCount()) {
-            throw new IllegalArgumentException("Offset is out of bounds");
+            // awt.195=Offset is out of bounds
+            throw new IllegalArgumentException(Messages.getString("awt.195")); //$NON-NLS-1$
         }
 
         updateMetrics();
@@ -267,7 +276,8 @@
         float justification = breaker.getJustification();
 
         if (justification < 0) {
-            throw new Error("Justification impossible, layout already justified");
+            // awt.196=Justification impossible, layout already justified
+            throw new Error(Messages.getString("awt.196")); //$NON-NLS-1$
         } else if (justification == 0) {
             return this;
         }
@@ -296,7 +306,8 @@
 
         if (firstEndpoint > secondEndpoint) {
             if (secondEndpoint < 0 || firstEndpoint > breaker.getCharCount()) {
-                throw new IllegalArgumentException("Endpoints are out of range");
+                // awt.197=Endpoints are out of range
+                throw new IllegalArgumentException(Messages.getString("awt.197")); //$NON-NLS-1$
             }
             return caretManager.getLogicalHighlightShape(
                     secondEndpoint,
@@ -306,7 +317,8 @@
             );
         }
         if (firstEndpoint < 0 || secondEndpoint > breaker.getCharCount()) {
-            throw new IllegalArgumentException("Endpoints are out of range");
+            // awt.197=Endpoints are out of range
+            throw new IllegalArgumentException(Messages.getString("awt.197")); //$NON-NLS-1$
         }
         return caretManager.getLogicalHighlightShape(
                 firstEndpoint,
@@ -331,7 +343,8 @@
 
     public TextHitInfo getNextLeftHit(int offset, TextLayout.CaretPolicy policy) {
         if (offset < 0 || offset > breaker.getCharCount()) {
-            throw new IllegalArgumentException("Offset is out of bounds");
+            // awt.195=Offset is out of bounds
+            throw new IllegalArgumentException(Messages.getString("awt.195")); //$NON-NLS-1$
         }
 
         TextHitInfo hit = TextHitInfo.afterOffset(offset);
@@ -355,7 +368,8 @@
 
     public TextHitInfo getNextRightHit(int offset, TextLayout.CaretPolicy policy) {
         if (offset < 0 || offset > breaker.getCharCount()) {
-            throw new IllegalArgumentException("Offset is out of bounds");
+            // awt.195=Offset is out of bounds
+            throw new IllegalArgumentException(Messages.getString("awt.195")); //$NON-NLS-1$
         }
 
         TextHitInfo hit = TextHitInfo.afterOffset(offset);
@@ -426,7 +440,8 @@
         float justification = breaker.getJustification();
 
         if (justification < 0) {
-            throw new IllegalStateException("Justification impossible, layout already justified");
+            // awt.196=Justification impossible, layout already justified
+            throw new IllegalStateException(Messages.getString("awt.196")); //$NON-NLS-1$
         } else if (justification == 0) {
             return;
         }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/TransformAttribute.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/TransformAttribute.java?view=diff&rev=470404&r1=470403&r2=470404
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/TransformAttribute.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/java/awt/font/TransformAttribute.java Thu Nov  2 08:15:32 2006
@@ -23,6 +23,8 @@
 import java.awt.geom.AffineTransform;
 import java.io.Serializable;
 
+import org.apache.harmony.awt.internal.nls.Messages;
+
 public final class TransformAttribute implements Serializable {
     private static final long serialVersionUID = 3356247357827709530L;
 
@@ -31,7 +33,8 @@
 
     public TransformAttribute(AffineTransform transform) {
         if (transform == null) {
-            throw new IllegalArgumentException("transform can not be null");
+            // awt.94=transform can not be null
+            throw new IllegalArgumentException(Messages.getString("awt.94")); //$NON-NLS-1$
         }
         if (!transform.isIdentity()){
             this.fTransform = new AffineTransform(transform);

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=470404&r1=470403&r2=470404
==============================================================================
--- 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 08:15:32 2006
@@ -39,20 +39,20 @@
 awt.15=Can not get monitor info
 awt.16=Can not create DC for device
 awt.17=Unknown Composite type : {0}
-awt.18=Transparency is not supported.
-awt.19=Illegal size of volatile image.
+awt.18=Transparency is not supported
+awt.19=Illegal size of volatile image
 awt.1A=Failed to register window class {0} GetLastError returned {1}
 awt.1B=Invalid key code
 awt.1C=Failure to create JavaWindow GetLastError returned {0}
 awt.1D=Cannot get data from OLE clipboard
 awt.1E=Attempt to replace WindowProc handler
-awt.1F=Waiting for resource access thread interrupted not from unlock method.
-awt.20=Can't unlock not locked resource.
-awt.21=Not owner can't unlock resource.
-awt.22=Not owner can't free resource.
-awt.23=One thread can't store state several times in a row.
-awt.24=Owner can't overwrite resource state. Lock operations may be lost.
-awt.25=No state stored for current thread.
+awt.1F=Waiting for resource access thread interrupted not from unlock method
+awt.20=Can't unlock not locked resource
+awt.21=Not owner can't unlock resource
+awt.22=Not owner can't free resource
+awt.23=One thread can't store state several times in a row
+awt.24=Owner can't overwrite resource state. Lock operations may be lost
+awt.25=No state stored for current thread
 awt.26=Shutdown thread was interrupted while starting
 awt.27=Shutdown thread was interrupted while stopping
 awt.28=bad index: {0}
@@ -182,9 +182,9 @@
 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.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
@@ -221,7 +221,7 @@
 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.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
@@ -268,6 +268,214 @@
 awt.15A=Invalid value for defaultSelection
 awt.15B=Invalid value for multipleDocumentHandling
 awt.15C=Invalid value for attribute sides
+awt.15D=Invalid colorspace
+awt.15E=Unknown component. Must be REDCOMPONENT, GREENCOMPONENT or BLUECOMPONENT.
+awt.15F=Profile class does not comply with ICC specification
+awt.160=Color space doesn't comply with ICC specification
+awt.161=Unable to open file {0}
+awt.162=Invalid ICC Profile Data
+awt.163=Can't open color profile
+awt.164=Not a predefined color space
+awt.165=Color space doesn't comply with ICC specification
+awt.166=TRC is not a simple gamma value
+awt.167=TRC is a gamma value, not a table
+awt.168=Invalid profile class
+awt.169=Component index out of range
+awt.16A=Invalid component index: {0}
+awt.16B=Not a predefined colorspace
+awt.16C=Can't load class: {0}
+awt.16D=Can't parse MIME type: {0}
+awt.16E=Transferable has null data
+awt.16F=Can't create reader for this representation class
+awt.170=Can't create default D&D cursor: {0}
+awt.171=Attempt to start a drag while an existing drag operation is still executing
+awt.172=Drag source is null
+awt.173=One listener is already exist
+awt.174=dgl is not current listener
+awt.175=Listener mismatch
+awt.176=DropTarget cannot be added as listener to itself
+awt.177=Invalid user action
+awt.178=Invalid source action
+awt.179=Context peer is null
+awt.17A=Trigger event is null
+awt.17B=Can't init ACTION_NONE drag
+awt.17C=Image offset is null
+awt.17D=Transferable is null
+awt.17E=Component associated with the trigger event is null
+awt.17F=DragSource for the trigger event is null
+awt.180=Source actions for the DragGestureRecognizer associated with the trigger event are equal to DnDConstants.ACTION_NONE
+awt.181=Attempt to register context as its listener
+awt.182=dsl is not current listener
+awt.183=Invalid status
+awt.184=Invalid action
+awt.185=Component is null
+awt.186=DragSource is null
+awt.187=Origin is null
+awt.188=Event list is null
+awt.189=Event list is empty
+awt.18A=Context is null
+awt.18B=Invalid button value
+awt.18C=Cannot invoke null runnable
+awt.18D=Source is null
+awt.18E=Wrong event id
+awt.18F=Text must be null for CARET_POSITION_CHANGED
+awt.190=Wrong committedCharacterCount
+awt.191=Invalid keyCode for KEY_TYPED event, must be VK_UNDEFINED
+awt.192=Invalid keyChar for KEY_TYPED event, can't be CHAR_UNDEFINED
+awt.193=Listener can't be zero
+awt.194=Unknown attribute name
+awt.195=Offset is out of bounds
+awt.196=Justification impossible, layout already justified
+awt.197=Endpoints are out of range
+awt.198=Illegal alignment argument
+awt.199=Illegal range argument value: {0}
+awt.19A=start or count arguments are out of text range
+awt.19B=count argument must be positive
+awt.19C=weight must be a positive number
+awt.19D=growLeftLimit must be a positive number
+awt.19E=growRightLimit must be a positive number
+awt.19F=incorrect value for shrinkPriority, more than PRIORITY_NONE or less than PRIORITY_KASHIDA value
+awt.200=incorrect value for growPriority, more than PRIORITY_NONE or less than PRIORITY_KASHIDA value
+awt.201=shrinkLeftLimit must be a positive number
+awt.202=shrinkRightLimit must be a positive number
+awt.203=Offset limit should be greater than current position
+awt.204=Determinant is zero
+awt.205=Invalid type of Arc: {0}
+awt.206=Flatness is less then zero
+awt.207=Limit is less then zero
+awt.208=Path is null
+awt.209=Invalid winding rule value
+awt.20A=First segment should be SEG_MOVETO type
+awt.20B=unknown input method highlight state
+awt.20C=Number of Bits equals to zero
+awt.20D=The number of bits per pixel is not a power of 2 or pixels span data element boundaries
+awt.20E=Data Bit offset is not a multiple of pixel bit stride
+awt.20F=Number of bands must be only 1
+awt.210=The component value for this ColorModel is signed
+awt.211=Pixel values for this ColorModel are not conveniently representable as a single int
+awt.212=There is more than one component in this ColorModel
+awt.213=This ComponentColorModel does not support the unnormalized form
+awt.214=This Color Model doesn't support this transferType
+awt.215=transferType is not one of DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, DataBuffer.TYPE_INT, DataBuffer.TYPE_SHORT, DataBuffer.TYPE_FLOAT, or DataBuffer.TYPE_DOUBLE
+awt.216=The components array is not large enough to hold all the color and alpha components
+awt.217=The transfer type of this ComponentColorModel is not one of the following transfer types: DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT, or DataBuffer.TYPE_INT
+awt.218=The components array is not large enough to hold all the color and alpha components
+awt.219=This transferType is not supported by this color model
+awt.21A=This ComponentColorModel does not support this transferType
+awt.21B=The length of normComponents minus normOffset is less than numComponents
+awt.21C=The number of scale factors should not be zero
+awt.21D=Number of src bands ({0}) does not match number of dst bands ({1})
+awt.21E=Number of scaling constants is not equal to the number of bands
+awt.21F=Unable to transform source
+awt.220=Source should not have IndexColorModel
+awt.221=The imageType is TYPE_BYTE_BINARY and the color map has more than 16 entries
+awt.222=The imageType is not TYPE_BYTE_BINARY or TYPE_BYTE_INDEXED
+awt.223=The imageType is not compatible with ColorModel
+awt.224=Unknown image type
+awt.225=Property name is null
+awt.226=Both tileX and tileY are not equal to 0
+awt.227=This image type can't have alpha
+awt.228=minX or minY of this raster not equal to zero
+awt.229=Number of components in the LUT does not match the number of bands
+awt.22A=Wrong type of pixels array
+awt.22B=Length of data should not be less than width*height
+awt.22C=Unknown data type {0}
+awt.22D=This transferType ( {0} ) is not supported by this color model
+awt.22E=w or h is less than or equal to zero
+awt.22F=The product of w and h is greater than Integer.MAX_VALUE
+awt.230=dataType is not one of the supported data types
+awt.231=Number of bands must be more then 0
+awt.232=Offset should be not less than zero
+awt.233=Number of components should be positive
+awt.234=Width or Height equals zero
+awt.235=Wrong Data Buffer type : {0}
+awt.236=The bits is less than 1 or greater than 32
+awt.237=Source and destinations rasters do not have the same number of bands
+awt.238=The number of arrays in the LookupTable does not meet the restrictions
+awt.239=The space is not a TYPE_RGB space
+awt.23A=The min/max normalized component values are not 0.0/1.0
+awt.23B=The mask of the {0} component is not contiguous
+awt.23C=The mask of the alpha component is not contiguous
+awt.23D=The mask of the red component is not contiguous
+awt.23E=The mask of the green component is not contiguous
+awt.23F=The mask of the blue component is not contiguous
+awt.240=The transferType not is one of DataBuffer.TYPE_BYTE, DataBuffer.TYPE_USHORT or DataBuffer.TYPE_INT
+awt.241=Any offset between bands is greater than the Scanline stride
+awt.242=Pixel stride is less than any offset between bands
+awt.243=Product of Pixel stride and w is greater than Scanline stride
+awt.244=Width or Height of child Raster is less than or equal to zero
+awt.245=parentX disposes outside Raster
+awt.246=parentY disposes outside Raster
+awt.247=parentX + w results in integer overflow
+awt.248=parentY + h results in integer overflow
+awt.249=childMinX + w results in integer overflow
+awt.24A=childMinY + h results in integer overflow
+awt.24B=Pixel stride must be >= 0
+awt.24C=Scanline stride must be >= 0
+awt.24D=Bank Indices length must be equal Bank Offsets length
+awt.24E=Index of {0} bank must be >= 0
+awt.24F=Unable to invert transform {0}
+awt.250=Unknown interpolation type: {0}
+awt.251=Transformed width ({0}) and height ({1}) should be greater than 0
+awt.252=Source can't be same as the destination
+awt.253=Different number of bands in source and destination
+awt.254=Number of bands in the source raster ({0}) is incompatible with the matrix [{1}x{2}]
+awt.255=Number of bands in the destination raster ({0}) is incompatible with the matrix [{1}x{2}]
+awt.256=Source raster is null
+awt.257=Source raster is equal to destination
+awt.258=Number of source bands ({0}) is not equal to number of destination bands ({1})
+awt.259=Source image is null
+awt.25A=Source equals to destination
+awt.25B=Null ColorSpace passed as a parameter
+awt.25C=Null profiles passed as a parameter
+awt.25D=Source or destination color space is not defined
+awt.25E=Incorrect number of source raster bands. Should be equal to the number of color components of source colorspace.
+awt.25F=Incorrect number of destination raster bands. Should be equal to the number of color components of destination colorspace.
+awt.260=Incompatible rasters - width or height differs
+awt.261=Destination color space is undefined
+awt.262=Destionation color space should be defined
+awt.263=Incompatible images - width or height differs
+awt.264=Size of the color map is less than 1
+awt.265=The raster argument is not compatible with this IndexColorModel
+awt.266=The number of bits in a pixel is greater than 16
+awt.267=The transferType is invalid
+awt.268=The pixel is not a primitive array of type transferType
+awt.269=The transferType is not one of DataBuffer.TYPE_BYTE or DataBuffer.TYPE_USHORT
+awt.26A=Incorrect ImageConsumer completion status
+awt.26B=The number of bits in the pixel values is less than 1
+awt.26C=bits is null
+awt.26D=The elements in bits is less than 0
+awt.26E=The sum of the number of bits in bits is less than 1
+awt.26F=The cspace is null
+awt.270=The transparency is not a valid value
+awt.271=The number of bits in bits is less than 1
+awt.272=The length of components minus offset is less than numComponents
+awt.273=The length of normComponents minus normOffset is less than numComponents
+awt.274=componentIdx is greater than the number of components or less than zero
+awt.275=This pixel representation is not suuported by tis Color Model
+awt.276=location.x + w or location.y + h results in integer overflow
+awt.277=bankIndices or bandOffsets is null
+awt.278=dataBuffer is null
+awt.279=bands is less than 1
+awt.27A=dataBuffer has more than one bank
+awt.27B=bandOffsets is null
+awt.27C=bandMasks is null
+awt.27D=bitsPerBand or bands is not greater than zero
+awt.27E=The product of bitsPerBand and bands is greater than the number of bits held by dataType
+awt.27F=SampleModel or DataBuffer is null
+awt.280=SampleModel is null
+awt.281=sampleModel, dataBuffer, aRegion or sampleModelTranslate is null
+awt.282=aRegion has width or height less than or equal to zero
+awt.283=Overflow X coordinate of Raster
+awt.284=Overflow Y coordinate of Raster
+awt.285=Width or Height of child Raster is less than or equal to zero
+awt.286=parentX disposes outside Raster
+awt.287=parentY disposes outside Raster
+awt.288=parentX + width results in integer overflow
+awt.289=parentY + height results in integer overflow
+awt.28A=childMinX + width results in integer overflow
+awt.28B=childMinY + height results in integer overflow
+awt.28C=Rect is null
 
 awt.err.00=file dialog {0} error!
 awt.err.01=error: {0}



Mime
View raw message