I am developing a project using NetBeans IDE. I am new to javafx. I created a class \"AddStudent\" in a package named \"addstudent\". When I ran the class, I got \"Error: Could
I'm running your code and it works fine. What I did
Created New -> JavaFx Main Class -> AdStudent -> Copy/Pasted your code
Right click on Project -> Properties -> Run -> Browse Application Class -> Select class addstudent.AddStudent
Clean and Build
I have a feeling the first 2 are fine for you. You may just need to Clean and Build.