I added it in my application
HorizontalLayout subjects = new HorizontalLayout();
CountdownClock clock1 = new CountdownClock();
Calendar c = Calendar.getInstance();
c.set(2020, 11, 21, 0, 0, 0);
clock1.setDate(c.getTime());
clock1
.setFormat("<span style='font: bold 13px Arial; margin: 10px'>"
+ "Test Left<br />"
+ " %d days, %h hours, %m minutes and %s seconds</span>");
Iterator itr = buttons.iterator();
while (itr.hasNext()){
Button button = new Button(itr.next().toString());
subjects.add(button);
}
addComponentAsFirst(clock1);
add(subjects);
i dont have this working it says expected component but got CountDownClock at addComponentAsFirst(clock1); am i implementing it wrong it is a spring boot project