I have a JTree with a custom associated MouseListener (for showing popup etc.). I need to fire a MouseEvent that will be caught by the MouseListener. How should I do that programmatically?
I have a JTree with a custom associated MouseListener (for showing popup etc.). I
Share
You could create your own MouseEvent and loop through all the listeners and make the call.
For example: