equal
deleted
inserted
replaced
445 |
445 |
446 /** |
446 /** |
447 * Sends a <code>ChangeEvent</code>, whose source is this |
447 * Sends a <code>ChangeEvent</code>, whose source is this |
448 * <code>JSpinner</code>, to each <code>ChangeListener</code>. |
448 * <code>JSpinner</code>, to each <code>ChangeListener</code>. |
449 * When a <code>ChangeListener</code> has been added |
449 * When a <code>ChangeListener</code> has been added |
450 * to the spinner, this method method is called each time |
450 * to the spinner, this method is called each time |
451 * a <code>ChangeEvent</code> is received from the model. |
451 * a <code>ChangeEvent</code> is received from the model. |
452 * |
452 * |
453 * @see #addChangeListener |
453 * @see #addChangeListener |
454 * @see #removeChangeListener |
454 * @see #removeChangeListener |
455 * @see EventListenerList |
455 * @see EventListenerList |
1796 AccessibleText at = getEditorAccessibleText(); |
1796 AccessibleText at = getEditorAccessibleText(); |
1797 if (at != null ) { |
1797 if (at != null ) { |
1798 Rectangle editorRect = at.getCharacterBounds(i); |
1798 Rectangle editorRect = at.getCharacterBounds(i); |
1799 if (editorRect != null && |
1799 if (editorRect != null && |
1800 sameWindowAncestor(JSpinner.this, editor)) { |
1800 sameWindowAncestor(JSpinner.this, editor)) { |
1801 // return rectangle in the the JSpinner bounds |
1801 // return rectangle in the JSpinner bounds |
1802 return SwingUtilities.convertRectangle(editor, |
1802 return SwingUtilities.convertRectangle(editor, |
1803 editorRect, |
1803 editorRect, |
1804 JSpinner.this); |
1804 JSpinner.this); |
1805 } |
1805 } |
1806 } |
1806 } |