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