So they just provide an information about the point where the click happened. But the mouse events generally carry much more information: for example, whether this action triggers a popup menu.
I propose to change ?p: java.awt.Point to correspondent events - ?e: MousePressed in case of the former example. This, however, may break the existing Swing applications, so it requires some work.
There is a bunch of Swing scripts that are supposed to wait for a mouse event to happen. They have signatures as follows:
So they just provide an information about the point where the click happened. But the mouse events generally carry much more information: for example, whether this action triggers a popup menu.
I propose to change
?p: java.awt.Point
to correspondent events -?e: MousePressed
in case of the former example. This, however, may break the existing Swing applications, so it requires some work.