I have a question but maybe it was an old question.
I saw a class that extends JPanel and an override function called paintComponent for updating panel.
I use javafx, so i want to know is there any alternative for paintComponent?
I want to update a scene in my game loop, or when i use setScene for my stage.
Thanks.