viewer.getRenderContext().setVertexFillPaintTransformer(
new PickableVertexPaintTransformer<Vertex>(viewer
.getPickedVertexState(), Color.red, Color.yellow));
// create a form to hold the graph
final GraphZoomScrollPane panel = new GraphZoomScrollPane(viewer);
Container content = getContentPane();
content.add(panel);
final DefaultModalGraphMouse<Integer, Number> graphMouse = new DefaultModalGraphMouse<Integer, Number>();
viewer.setGraphMouse(graphMouse);