File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Custom HTMLEditorKit - to create paginated HTML file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Custom HTMLEditorKit - to create paginated HTML file" Watch "Custom HTMLEditorKit - to create paginated HTML file" New topic
Author

Custom HTMLEditorKit - to create paginated HTML file

p anu
Greenhorn

Joined: Sep 21, 2011
Posts: 6
Hi,
I have found solution for Pagination in JTextpane with Header and Footer. but it uses StyledEditorKit. i want to render the HTMl file paginated Header and Footer.Please help me to create Custom HTMLEditorKit.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19680
    
  18

What have you already tried, and where are you stuck?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
p anu
Greenhorn

Joined: Sep 21, 2011
Posts: 6
Hi,
i've tried with custom SyledEditorKit. when i change the StyledEditorKit to HTMLEditorkit its not working. any idea.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19680
    
  18

ItDoesntWorkIsUseless. TellTheDetails.
p anu
Greenhorn

Joined: Sep 21, 2011
Posts: 6
I had taken sample from http://java-sl.com/Pagination_In_JEditorPane_HF.html . it extends from StyledEditorKit. i want to render the Html. so when i change the content type to text/html it does not work. i thing problem on ViewFactory.
p anu
Greenhorn

Joined: Sep 21, 2011
Posts: 6
Hi guys,
Please help me to create Pagination in JTextPane to rendnder the HTML file.
 
jQuery in Action, 2nd edition
 
subject: Custom HTMLEditorKit - to create paginated HTML file