This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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: 19684
    
  20

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: 19684
    
  20

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.
 
Don't get me started about those stupid light bulbs.
 
subject: Custom HTMLEditorKit - to create paginated HTML file