[kaffe] CVS kaffe (robilad): Resynced with GNU Classpath: JFormattedTextField fixes for setDocument

Kaffe CVS cvs-commits at kaffe.org
Fri Dec 3 07:17:06 PST 2004


PatchSet 5522 
Date: 2004/12/03 15:11:55
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Resynced with GNU Classpath: JFormattedTextField fixes for setDocument

2004-12-03  Dalibor Topic  <robilad at kaffe.org>

        * libraries/javalib/javax/swing/JFormattedTextField.java:
        Resynced with GNU Classpath.

        2004-11-30  Michael Koch  <konqueror at gmx.de>

        * javax/swing/JFormattedTextField.java
        (setDocument): Call setDocument of super class. Don't fire property
        change event.

Members: 
	ChangeLog:1.3068->1.3069 
	libraries/javalib/javax/swing/JFormattedTextField.java:1.4->1.5 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3068 kaffe/ChangeLog:1.3069
--- kaffe/ChangeLog:1.3068	Fri Dec  3 14:59:55 2004
+++ kaffe/ChangeLog	Fri Dec  3 15:11:55 2004
@@ -1,5 +1,16 @@
 2004-12-03  Dalibor Topic  <robilad at kaffe.org>
 
+	* libraries/javalib/javax/swing/JFormattedTextField.java:
+        Resynced with GNU Classpath.
+
+	2004-11-30  Michael Koch  <konqueror at gmx.de>
+
+	* javax/swing/JFormattedTextField.java
+	(setDocument): Call setDocument of super class. Don't fire property
+	change event.
+
+2004-12-03  Dalibor Topic  <robilad at kaffe.org>
+
 	* libraries/javalib/gnu/java/awt/peer/gtk/GdkGraphics2D.java:
         Resynced with GNU Classpath.
 
Index: kaffe/libraries/javalib/javax/swing/JFormattedTextField.java
diff -u kaffe/libraries/javalib/javax/swing/JFormattedTextField.java:1.4 kaffe/libraries/javalib/javax/swing/JFormattedTextField.java:1.5
--- kaffe/libraries/javalib/javax/swing/JFormattedTextField.java:1.4	Sun Oct 24 13:39:11 2004
+++ kaffe/libraries/javalib/javax/swing/JFormattedTextField.java	Fri Dec  3 15:11:57 2004
@@ -217,13 +217,12 @@
 
   public void setDocument(Document newdoc)
   {
-    Document document = getDocument();
+    Document olddoc = getDocument();
 
-    if (document == newdoc)
+    if (olddoc == newdoc)
       return;
     
-    setDocument(newdoc);
-    firePropertyChange("document", document, newdoc);
+    super.setDocument(newdoc);
   }
 
   public void setLostFocusBehavior (int behavior)




More information about the kaffe mailing list