无法确定要附加到 Java FX 元素的绑定,以便通过从 Task() 影响它来获得淡入外观效果
在不透明度的帮助下。
Task_for_Opacity task_for_opacity = new Task_for_Opacity();
calendar_main.opacityProperty().bind(task_for_opacity. ?????? );
Thread th2 = new Thread(task_for_opacity);th2.setDaemon(true);th2.start();
这甚至可能吗?或者还有其他选择。
你可以使用动画