summaryrefslogtreecommitdiff
path: root/libjava/javax
diff options
context:
space:
mode:
authorfitzsim <fitzsim@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-31 15:29:47 +0000
committerfitzsim <fitzsim@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-31 15:29:47 +0000
commitd6702b2603baffdc18fa4db8192d63d3d97fe471 (patch)
tree76fccec53a890b344562bcfe8d1cc43ff3e82f4a /libjava/javax
parent1897b88152df894079137aba336a65361e09a9c8 (diff)
downloadgcc-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.java5
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());