For a assignment I am to modify an existing java applet.
I’m trying to get a JButton (or a clickable JMenu) on my JMenuBar.
There are a few menu’s and one of them should be usable as a button.
I found the same question several times but the winning answer stated that it would be “bad” and should still be an item in a JMenu.
While this is a possibility I really would prefer otherwise.
Thank you.
I found this post that (I think) is related to your question:
How to make a JMenu have Button behaviour in a JMenuBar
Is this wat you are trying to accomplish?
Good luck!