g2.setColor(Color.red);
    g2.draw(newPath);

Figure 15