开发者

insert a document to jscrollpane

开发者 https://www.devze.com 2023-01-26 17:24 出处:网络
I would like to开发者_开发知识库 display a document (text and images) into a JScrollPane. What is the easiest way to do this?You need a JTextPane. JScrollPane is for normal texts but if you want docum

I would like to开发者_开发知识库 display a document (text and images) into a JScrollPane. What is the easiest way to do this?


You need a JTextPane. JScrollPane is for normal texts but if you want document handling with styles and fonts and those stuff you see in text editors, you need JTextPane or JEditorPane.

You can do a search for the sample usage for JTextPane and JEditorPane.

0

精彩评论

暂无评论...
验证码 换一张
取 消