Java Illegal start type ) expected [closed]
Change the code from })} // this line I get the error to this }}); You need 2 consecutive closing braces: the first to finish the handle method, the 2nd to finish the EventHandler the outer close parentheses is to finish the setOnAction call. And finally a semi colon to complete the statement.