This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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());

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]