Javafx how to make a button to display and hide label

前端 未结 0 904
南笙
南笙 2020-12-03 10:21

I currently have a button to show certain text

roll.setOnAction(c -> {
      Label text = new Label("Hello");
      root.getChildren().add(text);         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题