Hi,

I committed this patch.  It adds a method to JTextComponent.

Tom

2005-03-31  Thomas Fitzsimmons  <[EMAIL PROTECTED]>

        * 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());
_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to