/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package calculatrice; import model.Computer; import view.ClasicView; import view.HexView; import view.ListView; import view.SimpleView; /** * * @author cirstea */ public class Calculatrice { /** * @param args the command line arguments */ public static void main(String[] args) { Computer model = new Computer(); // the model is passed as a parameter because // ClasicView is also a controller which needs to know the model ClasicView gui = new ClasicView(model); HexView hex = new HexView(model); ListView list = new ListView(); SimpleView text = new SimpleView(); model.addObserver(list); model.addObserver(text); } }