GeneralPath gp1 = new GeneralPath(); gp1.moveTo(0.25f*ds,-1.25f*ds); gp1.lineTo(0.50f*ds,-0.25f*ds); gp1.lineTo(0.75f*ds,-1.25f*ds); g2.setPaint(Color.blue); g2.draw(gp1); Figure 9