JavaFX:在CheckBox select上下拉(显示)文本字段

时间:2015-09-17 12:07:54

标签: java javafx javafx-8 scenebuilder

我正在使用scenebuilder,javaFx创建一个表单。我想在单击复选框上下拉(展开)一个文本字段,如accordion works。当我取消选中复选框它应该再次收缩。这些复选框下面还有其他标签和textFields,因此当复选框元素展开时它们应该向下移动。

                          <RadioButton fx:id="apply_ece" layoutX="89.0" layoutY="1033.0" mnemonicParsing="false" prefHeight="17.0" prefWidth="203.0" text="Are you applying for ECE PhD?" />
                          <RadioButton fx:id="complete_pg" layoutX="89.0" layoutY="1058.0" mnemonicParsing="false" prefHeight="17.0" prefWidth="292.0" text="Have you completed your Post Graduation?" />
                          <RadioButton fx:id="gate_exam" layoutX="89.0" layoutY="1115.0" mnemonicParsing="false" prefHeight="17.0" prefWidth="220.0" text="Taken GATE Exam?" />
                          <RadioButton fx:id="acad_degree" layoutX="89.0" layoutY="1086.0" mnemonicParsing="false" prefHeight="17.0" prefWidth="215.0" text="Other Academic Degrees?" />
                          <Label layoutX="92.0" layoutY="1154.0" prefHeight="44.0" prefWidth="438.0" text="Achievements, CV and Statement of Purpose">
                             <font>
                                <Font size="21.0" />
                             </font>
                          </Label>

0 个答案:

没有答案