summaryrefslogtreecommitdiffstats
path: root/libjava/java/awt/TextComponent.java
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-01 20:23:50 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-01 20:23:50 +0000
commit1e2e4c80921d7ea214262a3bb0cb45ad3180390a (patch)
tree10ba7b5a79c3ddf7355b304a8ab24880141f025b /libjava/java/awt/TextComponent.java
parenta460972d4622c8de0f4df4ec67416a331cbf7099 (diff)
downloadppe42-gcc-1e2e4c80921d7ea214262a3bb0cb45ad3180390a.tar.gz
ppe42-gcc-1e2e4c80921d7ea214262a3bb0cb45ad3180390a.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74124 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/awt/TextComponent.java')
-rw-r--r--libjava/java/awt/TextComponent.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/java/awt/TextComponent.java b/libjava/java/awt/TextComponent.java
index cbe7dc9169d..c193b9ef8b3 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.
*/
OpenPOWER on IntegriCloud