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/javax/swing/text/JTextComponent.java | |
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/javax/swing/text/JTextComponent.java')
-rw-r--r-- | libjava/javax/swing/text/JTextComponent.java | 5 |
1 files changed, 5 insertions, 0 deletions
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()); |