Rihpsalis / GhostGame

0 stars 0 forks source link

App.init() must not use JavaFX controls / scene graph #6

Closed armin-reichert closed 1 year ago

armin-reichert commented 1 year ago

See Javadoc for Application.init():

    /**
     * The application initialization method. This method is called immediately
     * after the Application class is loaded and constructed. An application may
     * override this method to perform initialization prior to the actual starting
     * of the application.
     *
     * <p>
     * The implementation of this method provided by the Application class does nothing.
     * </p>
     *
     * <p>
     * NOTE: This method is not called on the JavaFX Application Thread. An
     * application must not construct a Scene or a Stage in this
     * method.
     * An application may construct other JavaFX objects in this method.
     * </p>
     * @throws java.lang.Exception if something goes wrong
     */

Move all code that has anything to do with theUI into the start() method or something called from there.

armin-reichert commented 1 year ago

Noch nicht „gepushed“?

Von: Rihpsalis Gesendet: Donnerstag, 27. April 2023 19:20 An: Rihpsalis/GhostGame Cc: Armin Reichert; Author Betreff: Re: [Rihpsalis/GhostGame] App.init() must not use JavaFX controls /scene graph (Issue #6)

Closed #6 as completed. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>