Hi guys, so I'm starting with JavaFX using eclipse. I had a look at a few tutorials and the syntax seems quite different from other java projects I've done. Specifically, I'm a bit confused when it comes to add my code to the Eclipse project.
I've just started very soft, with a simple helloWorld, just to look at the syntax (this is the class I've created, all coming directly from eclipse ):
package myapp;
import javafx.application.Application;
import javafx.stage.Stage;
public class MyApplication extends Application {
@Override
public void start(Stage primaryStage) {
}
public static void main(String[] args) {
launch(args);
}
}
Now, if I want to add just a statement, literally something as simple as like System.out.println("Hello world");
, where is that supposed to go? Inside start presumably?
Also, there is another file in eclipse, called Main.java and that too has a main and a start methods?