logo       

[patch] add missing JTextComponent method: msg#00208

java.classpath.patches

Subject: [patch] add missing JTextComponent method

Hi,

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

Tom

2005-03-31 Thomas Fitzsimmons <fitzsim@xxxxxxxxxx>

* 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@xxxxxxx
http://lists.gnu.org/mailman/listinfo/classpath-patches
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise