Part 2 - How do I get consistent rendering when scaling a JTextPane?

前端 未结 3 1193
遇见更好的自我
遇见更好的自我 2020-12-07 03:05

I submitted another version of this question and a sample program before: How do I get consistent rendering when scaling a JTextPane?

Recapitulating the problem: I w

3条回答
  •  一个人的身影
    2020-12-07 03:36

    I would like to allow users to zoom into or out of a non-editable JTextPane.

    Since the text pane is non-editable, maybe you can create an image of the text pane by using the Screen Image class. Then you can draw the image on a panel using the approriate scaling factor.

提交回复
热议问题