Hi all,
I try to create an example which uses the classes Observable and Observer. Can you
give me a good example (which works ;-) ) ?
How Can we program this example ?
a window (JFrame) :
-------------------------------
| Language | Tools | | <- JMenu
-------------------------- |
| | French | | <- JMenuItem
| ------------- |
| | English | | <- JMenuItem
| ------------- |
| |
-------------------------------
What I want to do is : when we click the JMenuItem "French", the title "Tools"
has to become "Outils", and vice-versa.
Can you give me an example of code which works ?
My goal is to use Observer & Observable (for
big projects !).
Thanks.