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]

[gui] Align AccessibleAWTButton w/ jdk


JDK 1.4.2 returns "click" here. No docs, of course.

2004-11-21 Jerry Quinn <jlquinn@optonline.net>

	* java/awt/Button.java
	(AccessibleAWTButton.getAccessibleActionDescription): Return
	'click'.

Index: Button.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/Button.java,v
retrieving revision 1.12.2.5
diff -u -r1.12.2.5 Button.java
--- Button.java	16 Nov 2004 09:55:28 -0000	1.12.2.5
+++ Button.java	22 Nov 2004 01:20:35 -0000
@@ -1,5 +1,5 @@
 /* Button.java -- AWT button widget
-   Copyright (C) 1999, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2002, 2004 Free Software Foundation, Inc.

This file is part of GNU Classpath.

@@ -113,9 +113,9 @@
      */
     public String getAccessibleActionDescription(int i)
     {
-      if (i != 0)
-        return null;
-      return actionCommand;
+      if (i == 0)
+        return "click";
+      return null;
     }

/* (non-Javadoc)


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