Swing 下拉菜单怎么用

时间:2024-10-21 02:47:10

1、构造方法1:创建一个无文本的 JMenu 对象JMenu menu=new JMenu();构造方法2:创建一个带有指定文本的 JMenu 对象JMenu menu=new JMenu("文件");

© 手抄报圈