Observer pattern? Where do i get examples of this in Java (i know google but was hoping for some personal insight also.)
On to a proper explanation of my issue:
i have 3 forms/windows. "board" is the main form that loads as the application.
"chat" is where the text chat takes place.
"network" is where network connection is established.
i have the game (connect4) working locally and i would like to implement a networked version of it also.
my idea is maybe it is related to Observer pattern to have a thread (or something) monitoring network state during runtime and update the chat and board forms of the current network status as well as delivering received data from the network.
are my ideas valid? or how should i go about establishing network and network status updates throughout the application?
thank you for your input.
EDIT: is there a book on Java Observer pattern any one can recommend?