6668273: Example given in java.beans.EventHandler shows incorrect order of parameters
Summary: Very simple misprint
Reviewed-by: peterz, loneid
--- a/jdk/src/share/classes/java/beans/EventHandler.java Thu May 22 15:06:22 2008 +0400
+++ b/jdk/src/share/classes/java/beans/EventHandler.java Fri May 23 20:14:20 2008 +0400
@@ -636,7 +636,7 @@
* time a mouse button is pressed, one would write:
*<blockquote>
*<pre>
- *EventHandler.create(MouseListener.class, "mousePressed", target, "origin", "point");
+ *EventHandler.create(MouseListener.class, target, "origin", "point", "mousePressed");
*</pre>
*</blockquote>
*