stroke = new BasicStroke( 0.2f*ds,//width BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER); g2.setStroke(stroke); GeneralPath gp2 = new GeneralPath(); gp2.moveTo(0.75f*ds,-0.25f*ds); gp2.lineTo(1.00f*ds,-1.25f*ds); gp2.lineTo(1.25f*ds,-0.25f*ds); g2.setPaint(Color.green); g2.draw(gp2); Figure 10 |