Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swing scripts for mouse actions don't provide full information about the event #56

Open
anatoliykmetyuk opened this issue Oct 7, 2014 · 1 comment

Comments

@anatoliykmetyuk
Copy link
Collaborator

There is a bunch of Swing scripts that are supposed to wait for a mouse event to happen. They have signatures as follows:

mousePressed     (comp: Component, ?p : java.awt.Point)

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.

@AndreVanDelft
Copy link
Owner

I agree; let's do this in the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants