DEV Community

ShaikAslam1
ShaikAslam1

Posted on

How to add/remove the ChoiceBox, TextField, and Label when clicking on the Add/Remove button in javaFx.

Can you please tell me how to add the ChoiceBox, TextField, and Label when clicking on the Add button and how to remove it when clicking on the Remove button. Under ScrollPane, under GridPane I added the Add button. when I clicked that button ChoiceBox, TextField, and Label should add…

Can you please tell me how to add the ChoiceBox, TextField, and Label when clicking on the Add button and how to remove it when clicking on the Remove button. Under ScrollPane, under GridPane I added the Add button. when I clicked that button ChoiceBox, TextField, and Label should add below the exiting Field. And Field should remove when clicking on the remove button. Refer this image for clarification

-------------Refer StackOverflow-------------

Thank in advance.

Top comments (0)