The nice thing about using MineSweeper as an example is that it has no outside API to interact with and no persistence layer, so that everything can be done on the FXAT. I wondered just how simple a MineSweeper program could be if it was written with a strict MVC approach. The question itself doesn’t matter - and it was later deleted by the person asking the question - but the sample code that was posted was extremely complicated and did not work very well. Recently, I saw a question on StackOverflow from someone attempting to build a MineSweeper game in JavaFX. The structure of this application uses the Reactive nature of JavaFX in virtually all of its design aspects. MineSweeper is a simple game that can be used to illustrate how to implement MVC in JavaFX, and also to show how a lot of functionality can be packed into very simple code with JavaFX. It can be used effectively with JavaFX, but how to do so properly is not very well understood or very well documented. Model - View - Controller is a design pattern that has become the defacto standard for building web sites and business applications worldwide. A Quick Review of Model-View-Controller.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |