62,63c62,68 < protected DrawingView createDrawingView() { < return new ZoomDrawingView(this); --- > protected DrawingView createDrawingView(Drawing newDrawing) { > Dimension d = getDrawingViewSize(); > DrawingView newDrawingView = new ZoomDrawingView(this, d.width, d.height); > newDrawingView.setDrawing(newDrawing); > // notify listeners about created view when the view is added to the desktop > //fireViewCreatedEvent(newDrawingView); > return newDrawingView; 252,259c257 < protected boolean closeQuery(){ < int reply = JOptionPane.showConfirmDialog(this, < "Do you really want to exit?", < "JHotDraw - Exit" , < JOptionPane.YES_NO_OPTION, < JOptionPane.QUESTION_MESSAGE); < return (reply == JOptionPane.YES_OPTION); < } --- > 266d263 <