Sounds like the title of a spy novel, doesn't it?
Actually I wrote a small MVC-type program that has icons (JLabel) on a screen (JPanel). The logic of the icons is managed by a model class. Through the Observable class a view class is registered to it which takes care of the drawing, relocating and coloring of the icons. This view class is a JLabel-derived class. The view is aware of the model, but the model only communicates to the view through the observer/observable system using the setChanged() and notifyObservers() methods. The view then accesses the model's attributes to detect what changed and redraws the icon if necessary.
Everything works well except removing the icon from the screen. When I destroy the model, how do I get the view notified that is should... get destroyed too? How do I get it to tell the JPanel that it is to be removed, and how does the JPanel know which of the icons is to be removed?
Thanks in advance.