public void repaintGraph() { graph.populateGraphElements(); graph.paintComponent(graph.getGraphics()); }