• Post Reply Bookmark Topic Watch Topic
  • New Topic

application hangs when stroke property dash-type is set (no problem with setting stroke width)

 
sarveshwar singh
Greenhorn
Posts: 13
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi !!,
This is Sarveshwar.

my code sample:-



i am calling this method inside paintComponent() of Jpanel....when i setStroke() with some fDashType(like new float[]{12,6}) no problem occures...but after setting stroke if i scale on the same graphic object the application hangs.

Thanks.
 
Campbell Ritchie
Marshal
Posts: 52576
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Don't know, sorry. What happens if you omit the scaling transform?

This question is too difficult for "beginning", so I shall move it.
a always use the code button; since you are new I have edited your post and you can see how much better it looks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!