1

I would like to create a horizontal clickable Menu as in the Microsoft Powerpoint or Word.

For example, when 'insert' JButton clicked, I want to see options to be clicked. So the user can choose any of the JMenuItems below the 'insert'/any menu.

Thanks for your helps in advance..

mKorbel
  • 109,525
  • 20
  • 134
  • 319
akoruk
  • 195
  • 2
  • 8

3 Answers3

4

maybe JPopupMenu, another examples here

mKorbel
  • 109,525
  • 20
  • 134
  • 319
3

You might need JMenuBar and JMenuItem

COD3BOY
  • 11,964
  • 1
  • 38
  • 56
2

JToolBar is particularly flexible for this, as you can add other components. See also How to Use Tool Bars and this example.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045