diff options
author | Thomas Fitzsimmons <fitzsim@redhat.com> | 2005-03-31 15:29:47 +0000 |
---|---|---|
committer | Thomas Fitzsimmons <fitzsim@gcc.gnu.org> | 2005-03-31 15:29:47 +0000 |
commit | 406490a8492a82c538db3aa6b43b5cffb9d05b42 (patch) | |
tree | 76fccec53a890b344562bcfe8d1cc43ff3e82f4a /libjava | |
parent | 87c8b4bed31dbbf4708549e10814197cac4d8249 (diff) | |
download | gcc-406490a8492a82c538db3aa6b43b5cffb9d05b42.zip gcc-406490a8492a82c538db3aa6b43b5cffb9d05b42.tar.gz gcc-406490a8492a82c538db3aa6b43b5cffb9d05b42.tar.bz2 |
JTextComponent.java (viewToModel): New method.
2005-03-31 Thomas Fitzsimmons <fitzsim@redhat.com>
* javax/swing/text/JTextComponent.java (viewToModel): New method.
From-SVN: r97325
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 4 | ||||
-rw-r--r-- | libjava/javax/swing/text/JTextComponent.java | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 499fc05..4d1673d 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,7 @@ +2005-03-31 Thomas Fitzsimmons <fitzsim@redhat.com> + + * javax/swing/text/JTextComponent.java (viewToModel): New method. + 2005-03-29 Ian Lance Taylor <ian@airs.com> * external/sax/Makefile.am (GCJ_WITH_FLAGS): Add "-fclasspath=". diff --git a/libjava/javax/swing/text/JTextComponent.java b/libjava/javax/swing/text/JTextComponent.java index 2a05e95..f3721a8 100644 --- a/libjava/javax/swing/text/JTextComponent.java +++ b/libjava/javax/swing/text/JTextComponent.java @@ -1467,6 +1467,11 @@ public abstract class JTextComponent extends JComponent dragEnabled = enabled; } + public int viewToModel(Point pt) + { + return getUI().viewToModel(this, pt); + } + public void copy() { doTransferAction("copy", TransferHandler.getCopyAction()); |