This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

AWT - Printing- To set number of pages  RSS feed

 
merwin pinto
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I had written a code to print the content out from a JEditorpane ....
now the printing goes fine up to 1 page. If the content on the editorpane
increases then the printing terminates at one page and the rest is lost...

Using Book class i can set the number of pages OR set a longer ImageableArea ....But the problem is that i cannot access how many number of pages the content is going to be on the editor pane ..... Now my question is this :

Is there any way i can find out the number of pages of content in the editor pane so that i can set the number of pages in the Book class ....befor printing ?

Thanks a lot in advance
regards
merwin
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!