mxGraphComponent graphComponent = new mxGraphComponent(graph)
{
// Sets global image base path
public mxInteractiveCanvas createCanvas()
{
mxInteractiveCanvas canvas = super.createCanvas();
canvas.setImageBasePath("/com/mxgraph/examples/swing/");
return canvas;
}
};
getContentPane().add(graphComponent);