我想在我的界面中添加一个计时器栏,但是当我尝试在进度栏中设置setValue时,无法解析setValue方法。我在这里做错了什么,谁能告诉我如何解决这个问题。谢谢你的时间。
package com.leopard.spring;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.dependency.StyleSheet;
import com.vaadin.flow.component.html.H1;
import com.vaadin.flow.component.html.Label;
import com.vaadin.flow.component.orderedlayout.HorizontalLayout;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router.Route;
import javafx.scene.control.ProgressBar;
import com.vaadin.flow.component.textfield.TextField;
//import com.vaadin.flow.component.table.Table;
//import com.vaadin.ui.Table;
@Route("Playboard")
@StyleSheet("frontend://styles/style.css")
public class Playboard extends VerticalLayout {
// private Grid<Person> grid = new Grid<>(Person.class);
// /
public Playboard() {
setLayout();
addClassName("play-board");
setSizeFull();
}
HorizontalLayout timer = new HorizontalLayout();
ProgressBar progressBar = new ProgressBar();
progressBar.setValue(0.600);
add(timer);}}