I know how mvc works, and what belongs into the different parts, but I am pretty new to javafx. Let's use the simple tic-tac-toe game as an example. I would probably end up creating a MainView, GridView and a MarkView (for X and O). I know this is overengineered, for such a simple game, but let's just use it for demonstration purposes. MainView would inherit Application, so it's pretty simple, but how could I render the GridView or the MarkView (in GridView), like you would usually do for javafx classes like Label. Are there any best practices? What I need is one class, which needs to be instantiated and renders the object, controller and model. Some kind of components, so I can make everything reusable.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.