NetBeans : How to connect two components , so that they perform the same action?
===

I have created a JMenuItem and a JButton in a JForm.
Is there an easy way to connect them so that they perform the same action, using Netbeans IDE?
Thank you.