/[classpath]/classpath/java/awt/TextComponent.java
ViewVC logotype

Diff of /classpath/java/awt/TextComponent.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by tromey, Sun Mar 24 22:49:20 2002 UTC revision 1.9 by mkoch, Tue Jan 14 21:30:38 2003 UTC
# Line 291  getCaretPosition() Line 291  getCaretPosition()
291    * Sets the caret position to the specified value.    * Sets the caret position to the specified value.
292    *    *
293    * @param caretPosition The new caret position.    * @param caretPosition The new caret position.
294      *
295      * @exception IllegalArgumentException If the value supplied for position
296      * is less than zero.
297      *
298      * @since 1.1
299    */    */
300  public synchronized void  public synchronized void
301  setCaretPosition(int caretPosition)  setCaretPosition(int caretPosition)
302  {  {
303      if (caretPosition < 0)
304        throw new IllegalArgumentException ();
305      
306    TextComponentPeer tcp = (TextComponentPeer)getPeer();    TextComponentPeer tcp = (TextComponentPeer)getPeer();
307    if (tcp != null)    if (tcp != null)
308      tcp.setCaretPosition(caretPosition);      tcp.setCaretPosition(caretPosition);

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26