1、idea打开javafx项目
2、运行并启动程序,打开一个窗口
3、布局中添加组合框Combobox
4、定位到主程序中
5、添加代码
6、查看效果
1、ComboBox comboBox = new ComboBox();