historyState = -1;
    void initialize(HiViewer model, HiViewerWin view)    {        if (model == null) throw new NullPointerException("No model.");        if (view == null) throw new NullPointerException("No view.");        this.model = model;        this.view = view;        actionsMap = new HashMap();        createActions();        model.addChangeListener(this);           attachListeners();    }