Hey,
This patch fixes a minor bug in javax.swing.JTextField. The problem was
that in fireActionPerformed(), when creating a new event, we were
passing getText() as the parameter for the command when we should have
been passing the actionCommand variable.
This patch now fixes the Deepamehta login session and allows the
application to load. Tom helped me out with this problem. It turned
out to be much simpler than what I had thought.
Cheers,
Tania
2006-10-31 Tania Bento <[EMAIL PROTECTED]>
* javax/swing/JTextField.java
(fireActionPerformed): When creating the new event,
actionCommand should be used as the command, not
getText().
Index: javax/swing/JTextField.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JTextField.java,v
retrieving revision 1.32
diff -u -r1.32 JTextField.java
--- javax/swing/JTextField.java 13 Apr 2006 12:20:42 -0000 1.32
+++ javax/swing/JTextField.java 31 Oct 2006 15:46:30 -0000
@@ -270,7 +270,7 @@
*/
protected void fireActionPerformed()
{
- ActionEvent event = new ActionEvent(this, 0, getText());
+ ActionEvent event = new ActionEvent(this, 0, actionCommand);
ActionListener[] listeners = getActionListeners();
for (int index = 0; index < listeners.length; ++index)