Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • 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
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
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!