I have created a JMenuItem and a JButton.
How can I have the same result when I use either the JMenuItem or the JButton?
Basically I want them to trigger the same method.
Thank you.

Recommended Answers

All 3 Replies

Is there an easy way to do this connection in netbeans?

Sorry, don't know, I use Eclipse.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.