网站首页
编程语言
数据库
系统相关
其他分享
编程问答
moduleComboBox
2024-05-15
【Swing】JComboBox
JComboBoxString[]moduleArray=newString[]{"苹果","香蕉","葡萄"}JComboBoxmoduleComboBox=newJComboBox<>(moduleArray);moduleComboBox.addActionListener(e->{Stringmodule=(String)moduleComboBox.getSelectedI