package memoryleakdemo; import javafx.scene.layout.VBox; import javafx.scene.layout.HBox; import javafx.scene.text.Text; import javafx.scene.effect.DropShadow; import javafx.scene.text.Font; import javafx.scene.control.RadioButton; import javafx.scene.control.ToggleGroup; import javafx.scene.CustomNode; public class MyCustomNode extends CustomNode { var RADIO_STRING = "I am radio"; var defaultDropShadow:DropShadow = DropShadow { offsetX: 5 offsetY: 5 radius: 8}; var h2Font:Font = Font { size: 18 }; var h3Font:Font = Font { size: 17 }; //Font.font("",FontWeight.BOLD,17) var inclusionText = Text { content: "Some Header 1" font: h2Font effect: defaultDropShadow}; var exclusionText = Text { content: "Some Header 2" font: h2Font effect: defaultDropShadow}; var inclusionDescText = Text {content: "Subheader 1",font:h3Font}; var exclusionDescText = Text {content: "Subheader 2",font:h3Font}; var yesText1 = Text {content:"Y", font:h3Font, effect: defaultDropShadow}; var noText1 = Text {content:"N", font:h3Font, effect: defaultDropShadow}; var yesText2 = Text {content:"Y", font:h3Font, effect: defaultDropShadow}; var noText2 = Text {content:"N", font:h3Font, effect: defaultDropShadow}; var toggleGrp1=ToggleGroup{}; var rButton1=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp1}; var rButton2=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp1}; var toggleGrp2=ToggleGroup{}; var rButton3=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp2}; var rButton4=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp2}; var toggleGrp3=ToggleGroup{} var rButton5=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp3}; var rButton6=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp3}; var toggleGrp4=ToggleGroup{} var rButton7=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp4}; var rButton8=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp4}; var toggleGrp5=ToggleGroup{} var rButton9=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp5}; var rButton10=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp5}; var toggleGrp11=ToggleGroup{} var rButton11=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp11}; var rButton12=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp11}; var toggleGrp12=ToggleGroup{} var rButton13=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp12}; var rButton14=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp12}; var toggleGrp13=ToggleGroup{} var rButton15=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp13}; var rButton16=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp13}; var toggleGrp14=ToggleGroup{} var rButton17=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp14}; var rButton18=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp14}; var toggleGrp15=ToggleGroup{} var rButton19=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp15}; var rButton20=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp15}; var toggleGrp16=ToggleGroup{} var rButton21=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp16}; var rButton22=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp16}; var toggleGrp17=ToggleGroup{} var rButton23=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp17}; var rButton24=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp17}; var toggleGrp18=ToggleGroup{} var rButton25=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp18}; var rButton26=RadioButton { text: RADIO_STRING toggleGroup:toggleGrp18}; override function create() { VBox { content: [ HBox { content: [ Text{ content: " " }, Text{ content: " " }, Text{ content: " " }, Text{ content: " " }, Text{ content: " " } ] } HBox { content: [ Text{ content: "Text 1" }, Text{ content: "Text 2" }, Text{ content: "Text 3" }, Text{ content: "Text 4" }, Text{ content: "Text 5" } ] } HBox { content: [ Text{ content: "Text 6" }, Text{ content: "Text 7" }, Text{ content: "Text 8" }, Text{ content: "Text 9" }, Text{ content: "Text 10" } ] } HBox { content: [ Text{ content: "Text 1" }, Text{ content: "Text 2" }, Text{ content: "Text 3" }, Text{ content: "Text 4" }, Text{ content: "Text 5" } ] } HBox { content: [ Text{ content: "Text 6" }, Text{ content: "Text 7" }, Text{ content: "Text 8" }, Text{ content: "Text 9" }, Text{ content: "Text 10" } ] } HBox { content: [ Text{ content: "Text 1" }, Text{ content: "Text 2" }, Text{ content: "Text 3" }, Text{ content: "Text 4" }, Text{ content: "Text 5" } ] } HBox { content: [ Text{ content: "Text 6" }, Text{ content: "Text 7" }, Text{ content: "Text 8" }, Text{ content: "Text 9" }, Text{ content: "Text 10" } ] } HBox { content: [ Text{ content: "Text 1" }, Text{ content: "Text 2" }, Text{ content: "Text 3" }, Text{ content: "Text 4" }, Text{ content: "Text 5" } ] } HBox { content: [ Text{ content: "Text 6" }, Text{ content: "Text 7" }, Text{ content: "Text 8" }, Text{ content: "Text 9" }, Text{ content: "Text 10" } ] } HBox { content: [ Text{ content: " " }, Text{ content: " " }, Text{ content: " " }, Text{ content: " " }, Text{ content: " " } ] } HBox { content: [ rButton1, rButton2] } HBox { content: [ rButton3, rButton4] } HBox { content: [ rButton5, rButton6] } HBox { content: [ rButton7, rButton8] } HBox { content: [ rButton9, rButton10] } HBox { content: [ rButton11, rButton12] } HBox { content: [ rButton13, rButton14] } HBox { content: [ rButton15, rButton16] } HBox { content: [ rButton17, rButton18] } HBox { content: [ rButton19, rButton20] } HBox { content: [ rButton21, rButton22] } HBox { content: [ rButton23, rButton24] } HBox { content: [ rButton25, rButton26] } ] } } }