diff options
author | fitzsim <fitzsim@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-31 15:29:47 +0000 |
---|---|---|
committer | fitzsim <fitzsim@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-31 15:29:47 +0000 |
commit | d6702b2603baffdc18fa4db8192d63d3d97fe471 (patch) | |
tree | 76fccec53a890b344562bcfe8d1cc43ff3e82f4a /libjava/javax | |
parent | 1897b88152df894079137aba336a65361e09a9c8 (diff) | |
download | gcc-d6702b2603baffdc18fa4db8192d63d3d97fe471.tar.gz |
2005-03-31 Thomas Fitzsimmons <fitzsim@redhat.com>
* javax/swing/text/JTextComponent.java (viewToModel): New method.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97325 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/javax')
-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 2a05e95306b..f3721a82156 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()); |