Custom JMenuItems in Java

后端 未结 3 934
刺人心
刺人心 2020-12-30 07:22

Would it be possible to create a custom JMenuItem that contains buttons? For example would it be possible to create a JMenuITem with an item simila

3条回答
  •  猫巷女王i
    2020-12-30 08:04

    I'm sure there is, Like personally I would use individual menuitems and just put them side by side and have an action listener for each individual button. The tricky part would be putting them inside a container like a JPanel and putting them in a flow layout or a Grid layout

提交回复
热议问题