private void setVertexColor(Object vertex, Color color) { DefaultGraphCell cell = m_jgAdapter.getVertexCell(vertex); AttributeMap attr = cell.getAttributes(); GraphConstants.setBackground(attr, color); AttributeMap cellAttr = new AttributeMap(); cellAttr.put(cell, attr); m_jgAdapter.edit(cellAttr, null, null, null); }