How to implement MVC model?

Hi, I have a question on how to implement MVC model, that is, how will the GUI be informed that the data from the Model has been changed?

Suppose that I have two simple classes, Model and GUI. Model creates 10 integers each time, and then GUI draws some bars whose height is the integers. then after each time the integers has been created, how could GUI know?

Thanks!!!!

[390 byte] By [loudkinga] at [2007-10-2 6:36:58]
# 1
Google Observer pattern.
yawmarka at 2007-7-16 13:39:31 > top of Java-index,Java Essentials,New To Java...
# 2
There is an Observer pattern specific to Google?Oh wait, I get it.;)
filestreama at 2007-7-16 13:39:31 > top of Java-index,Java Essentials,New To Java...
# 3
> There is an Observer pattern specific to Google?I *so* implement the Google Observer pattern. ;o)
yawmarka at 2007-7-16 13:39:31 > top of Java-index,Java Essentials,New To Java...
# 4
> > There is an Observer pattern specific to Google?> > I *so* implement the Google Observer pattern. ;o)Isn't that the (G)oogling Observer pattern? ;)
filestreama at 2007-7-16 13:39:31 > top of Java-index,Java Essentials,New To Java...