Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GeneralPath query  RSS feed

 
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!