Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GeneralPath query

 
Inuka Jayasekera
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using a GeneralPath to display a tour going round cities (displayed as points). But I need to highlight some parts of the tour in different colours.
Does anyone know how I can set the colour of the GeneralPath at at various points. I tried changing the colour of the Graphics2D object in the paintComponent method but that changes the colour of the entire path.
Any help would be greatly appreciaated... Thanks...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!