createTimer();
    void initialize(ImViewer model, ImViewerUI view)    {        if (model == null) throw new NullPointerException("No model.");        if (view == null) throw new NullPointerException("No view.");        this.model = model;        this.view = view;        historyState = -1;        colorPickerIndex = -1;        actionsMap = new HashMap();        createActions();        model.addChangeListener(this);           model.addPropertyChangeListener(this);        //if (!(ImViewerFactory.isWindowMenuAttachedToTaskBar())) {        attachWindowListeners();        ImViewerFactory.attachWindowMenuToTaskBar();        //}        createTimer();    }