diff options
author | Olga Rodimina <rodimina@redhat.com> | 2003-12-01 20:23:50 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2003-12-01 20:23:50 +0000 |
commit | ea91ed098968dcee6c6e0bd028b8f2e2c9870547 (patch) | |
tree | 10ba7b5a79c3ddf7355b304a8ab24880141f025b /libjava/java/awt/TextComponent.java | |
parent | bde5dd25209b94a212a95f5ac15cc8d0d7156d45 (diff) | |
download | gcc-ea91ed098968dcee6c6e0bd028b8f2e2c9870547.zip gcc-ea91ed098968dcee6c6e0bd028b8f2e2c9870547.tar.gz gcc-ea91ed098968dcee6c6e0bd028b8f2e2c9870547.tar.bz2 |
2003-12-01 Olga Rodimina <rodimina@redhat.com>
* java/awt/TextComponent.java:
(getSelectionStart): Updated javadocs.
(getSelectionEnd): Ditto.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer:
(getSelectionStart): Changed to return caret position if no
text is selected
(getSelectionEnd): Ditto.
From-SVN: r74124
Diffstat (limited to 'libjava/java/awt/TextComponent.java')
-rw-r--r-- | libjava/java/awt/TextComponent.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/java/awt/TextComponent.java b/libjava/java/awt/TextComponent.java index cbe7dc9..c193b9e 100644 --- a/libjava/java/awt/TextComponent.java +++ b/libjava/java/awt/TextComponent.java @@ -163,7 +163,7 @@ getSelectedText() /** * Returns the starting position of the selected text region. - * // FIXME: What is returned if there is no selected text? + * If the text is not selected then caret position is returned. * * @return The starting position of the selected text region. */ @@ -196,7 +196,7 @@ setSelectionStart(int selectionStart) /** * Returns the ending position of the selected text region. - * // FIXME: What is returned if there is no selected text. + * If the text is not selected, then caret position is returned * * @return The ending position of the selected text region. */ |