}
}
**/
protected DrawingViewPanel createViewPanel(DrawingView view) {
DrawingViewPanel vp = null;
if (view instanceof Component) {
view.setBackground(Color.white);
vp = new DrawingViewPanel((JComponent) view);
SwingUtilities.replaceUIActionMap(vp, null);
SwingUtilities.replaceUIInputMap(vp, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null);
} else {
vp = new DrawingViewPanel();
SwingUtilities.replaceUIActionMap(vp, null);
SwingUtilities.replaceUIInputMap(vp, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, null);
}
vp.setDrawingView(view);
return vp;
}