src/share/classes/javax/swing/text/JTextComponent.java

Print this page

        

@@ -2554,11 +2554,11 @@
             int dot = e.getDot();
             int mark = e.getMark();
             if (caretPos != dot) {
                 // the caret moved
                 firePropertyChange(ACCESSIBLE_CARET_PROPERTY,
-                    new Integer(caretPos), new Integer(dot));
+                    caretPos, dot);
                 caretPos = dot;
 
                 try {
                     oldLocationOnScreen = getLocationOnScreen();
                 } catch (IllegalComponentStateException iae) {