How to create a JButton with a menu?

后端 未结 6 771
一向
一向 2020-12-30 20:16

I want to create a Toolbar in my application. If you click a button on that toolbar, it will pop up a menu, just like in Eclipse\'s toolbar. I don\'t know how to do this in

6条回答
  •  不知归路
    2020-12-30 20:23

    I'm not sure I understand you correctly but if you want to know how to make toolbars in Swing check this

    Java Tutorials: How to Use Tool Bars and this

    Java Tutorials: How to Use Actions

提交回复
热议问题