Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Drawing dotted/dashed lines in a scaled JPanel?

 
Walter Sheets
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not that I can't draw dotted lines, I can, but when I use Graphics2D.scale() to zoom in or out on the JPanel the dotted lines become ugly/rough/fuzzy depending on the scale factor.

I want the dotted lines to scale correctly in terms of location, but not change the appearance or spacing of the dottedness. Is there a way to do this?

Many thanks.



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic