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,107
  • 18
  • 130
  • 305
akoruk
  • 185
  • 2
  • 8

3 Answers3

4

maybe JPopupMenu, another examples here

mKorbel
  • 109,107
  • 18
  • 130
  • 305
3

You might need JMenuBar and JMenuItem

COD3BOY
  • 11,724
  • 1
  • 36
  • 55
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
  • 200,320
  • 28
  • 229
  • 974