print jscrollpane having multiple pages

I searched a lot, and tried so many examples from the internet, but I haven’t found a suitable example. My problem is, I am having a jscrollpane, it contains JEditorPane, and the content of JEditorPane is dynamic, when I prints jscrollpane, it prints first page only, but it has 5 to 6 pages. So please help me how can I print all pages from jscrollpane. Please help me

Answer

@Hovercraft Full Of Eels comment. Here I found an article to Printing/Previewing of the JEditorPane content. May be use full.

Leave a Reply

Your email address will not be published. Required fields are marked *