public void paint(Graphics g)
{
Graphics2D g2D = (Graphics2D)g;
Stroke tstroke = new BasicStroke(Float.parseFloat("1.0f"));
g2D.setPaint(Color.magenta); // Set the element color
g2D.setStroke(tstroke);
}
{
Graphics2D g2D = (Graphics2D)g;
Stroke tstroke = new BasicStroke(Float.parseFloat("1.0f"));
g2D.setPaint(Color.magenta); // Set the element color
g2D.setStroke(tstroke);
}
3.0f, 3.0f, 0.0f};
Stroke tstroke = new BasicStroke(1.0f, BasicStroke.CAP_BUTT,
BasicStroke.JOIN_MITER, 1.0f, dash1, 1.0f);