This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Drawing dotted/dashed lines in a scaled JPanel? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Drawing dotted/dashed lines in a scaled JPanel?" Watch "Drawing dotted/dashed lines in a scaled JPanel?" New topic
Author

Drawing dotted/dashed lines in a scaled JPanel?

Walter Sheets
Greenhorn

Joined: Jan 23, 2009
Posts: 8
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.



 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Drawing dotted/dashed lines in a scaled JPanel?
 
Similar Threads
UML Question
JTextArea
How are tiers shown in component diagram
Line2D vs. Line2D.Float vs...
draw smooth dash-ed line