/** * constructor * * @param frame The frame that called this dialog. * @param newModel The current model. */ public Dlg(JFrame frame, ViewStateModel newModel) { super(frame); initGUI(); // XXX property change listener stuff model = newModel; model.addPropertyChangeListener(this); updateViewState(model); }