• Post Reply Bookmark Topic Watch Topic
  • New Topic

printind an attributedString  RSS feed

 
aminur rashid
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using an attributed java.text.AttributedString to draw a striekd string by setting its attribute as
attributedString .addAttribute(java.awt.font.TextAttribute.STRIKETHROUGH,java.awt.font.TextAttribute.STRIKETHROUGH_ON);
It strikes the string on the graphics.
But if I print the graphic view on paper I don't see the striked string.Instead i see the normal string.
Does the AttribtedString understands canvas drawing only??
If yes then how to deal with the problem i.e to see the striked string in paper and on canvas also.
If no then why in printing i can't see the stiked line
Help me out plz
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!