6668273: Example given in java.beans.EventHandler shows incorrect order of parameters
authormalenkov
Fri, 23 May 2008 20:14:20 +0400
changeset 674 4867bdd4fa38
parent 673 effa1ee249d6
child 675 4f26ea16c5c1
6668273: Example given in java.beans.EventHandler shows incorrect order of parameters Summary: Very simple misprint Reviewed-by: peterz, loneid
jdk/src/share/classes/java/beans/EventHandler.java
--- 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>
      *