How is a non-static method accessed without an object?

I am new to JavaFX. In my following code, the getHBox() which is a non-static method is accessed without creating an object.

public class Main extends Application {
	public void start(Stage primaryStage) {
		//Main m = new Main();
		try {
			BorderPane rootPane = new BorderPane();
			Scene scene = new Scene(rootPane,400,400);
		} catch(Exception e) {
	public HBox getHBox()
		HBox hb = new HBox(15);
		hb.getChildren().add(new Button("Press"));
		return hb;

	public static void main(String[] args) {

Now I have looked at the answers in the web. Guys are talking something about class member. How is getHBox() method different from any other method? Please provide some explanation or direct me to an appropriate tutorial.


It’s been years since I looked into JavaFX, so my knowledge is really old.

My understanding is javaFX actually creates an instance of the object. Java isn’t magic, so the bootstrapping code for JavaFX must create an instance of the Main class and call the start method.