I know it's a basic question... But I'm still learning and I don't know what's happening !
I created a vaadin 8 project with Eclipse. I used this link to create some components : https://vaadin.com/wiki/-/wiki/Main/Creating%20a%20simple%20login%20view
But I would like to add :
Button sample = new Button("Click");
sample.addClickListener(event -> Notification.show("The button was clicked", Type.TRAY_NOTIFICATION));
But the method addClikcListener is not reconized !
EDIT :
Yes, I can do :
Button sample = new Button("Click", new Button.ClickListener() {
private static final long serialVersionUID = 1L;
@Override
public void buttonClick(ClickEvent event) {
}
)};
EDIT 2 : The error is :
Syntax error on token ".", @ expected after this token SimpleLoginMainView.java