This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[patch] add missing method to JTextComponent
- From: Thomas Fitzsimmons <fitzsim at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: Thu, 31 Mar 2005 10:40:07 -0500
- Subject: [patch] add missing method to JTextComponent
Hi,
I committed this patch to HEAD and gcc-4_0-branch.
Tom
2005-03-31 Thomas Fitzsimmons <fitzsim@redhat.com>
* javax/swing/text/JTextComponent.java (viewToModel): New method.
Index: javax/swing/text/JTextComponent.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/javax/swing/text/JTextComponent.java,v
retrieving revision 1.12
diff -u -r1.12 JTextComponent.java
--- javax/swing/text/JTextComponent.java 17 Feb 2005 07:48:53 -0000 1.12
+++ javax/swing/text/JTextComponent.java 31 Mar 2005 15:28:16 -0000
@@ -1467,6 +1467,11 @@
dragEnabled = enabled;
}
+ public int viewToModel(Point pt)
+ {
+ return getUI().viewToModel(this, pt);
+ }
+
public void copy()
{
doTransferAction("copy", TransferHandler.getCopyAction());