public void paint(Graphics g) { |
|
super.paint(g); |
|
if(path != null) { |
|
Graphics2D g2 = (Graphics2D)jPanel1.getGraphics(); |
|
g2.setColor(Color.RED); |
|
g2.setStroke(new BasicStroke((float)8)); |
|
g2.draw(path); |
|
} |
|
} |