From 406490a8492a82c538db3aa6b43b5cffb9d05b42 Mon Sep 17 00:00:00 2001 From: Thomas Fitzsimmons Date: Thu, 31 Mar 2005 15:29:47 +0000 Subject: JTextComponent.java (viewToModel): New method. 2005-03-31 Thomas Fitzsimmons * javax/swing/text/JTextComponent.java (viewToModel): New method. From-SVN: r97325 --- libjava/ChangeLog | 4 ++++ libjava/javax/swing/text/JTextComponent.java | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'libjava') 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 + + * javax/swing/text/JTextComponent.java (viewToModel): New method. + 2005-03-29 Ian Lance Taylor * 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()); -- cgit v1.1