1、idea打开javafx项目

2、运行并启动程序,打开一个窗口

3、布局中存在一个组合框

4、定位到主程序中

5、添加代码

6、查看效果

1、comboBox.getSelectionModel().selectedIndexProperty().addListener();
1、idea打开javafx项目

2、运行并启动程序,打开一个窗口

3、布局中存在一个组合框

4、定位到主程序中

5、添加代码

6、查看效果

1、comboBox.getSelectionModel().selectedIndexProperty().addListener();