2

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.

user6
  • 1,999
  • 2
  • 23
  • 29

1 Answers1

4

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!

Community
  • 1
  • 1
Byron Voorbach
  • 4,365
  • 5
  • 27
  • 35