Menu

#306 ActionEvent Bug

open
5
2008-03-17
2008-03-17
No

I have a component and I am trying to fire my own action and it gives me an error.

The error is in the line 73 of ActionEvent.java. It does not allow to fire more events than a click and double click.
That is the line of code:

if (action == null || !action.equals(Component.ACTION_CLICK) && !action.equals(Component.ACTION_DOUBLE_CLICK)) throw new IllegalArgumentException("action == null || !action.equals(ActionEventComponent.ACTION_CLICK) && !action.equals(ActionEventComponent.ACTION_DOUBLE_CLICK)");

I think you should remove it! Thanks.

Discussion


Log in to post a comment.