I am working on a Java Project and i want to do a simple display on a view. I heard that javaFx should be a good idea but I don't know if I'm going on the right way.
I have a basic array of boolean and i want to display it as a grid and put a dot or something else.
here is an example:
for the array {{1,0,1},{0,0,0},{1,1,0}}
. I'd like to have . And maybe some other variable (string, int) in the layout. Something close to an angular binding.
I have a main class launching a class "Foo" containing the data i want to display and doing some stuff modifying the data. My first idea was to use observer pattern with a new class "View" as observer and "Foo" as observable. And in my perfect world, when I create a new View I can create a new windows in the constructor, and update it in my update() method.
But I don't think I'm understanding right JavaFX because I think the only class that can be a javaFx Application is the main class and I don't understand how to use javaFx in my observer pattern.
Is there an easy way to do what i want? Should i change my architecture or use another graphic library?