Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Murach's Java Servlets and JSP this week in the Servlets 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.



 
I agree. Here's the link: http://aspose.com/file-tools
 
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